Re: Two directories with same name in a single directory

From: Sunder Iyengar (Sunder.Iyengar@VERITAS.COM)
Date: Sat Mar 13 2004 - 20:11:41 EST


Praveen,

It is possible that one of the entries has hidden characters in the name.

Try this -

ls -l|grep ^d|cat -vet

One of the two entries will then show up with the hidden character(s). Note
that the $ sign at the end of the line signifies end-of-line. Watch out for
a space character before the end-of-line $ sign.

Sunder.

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]
Sent: Sunday, 14 March 2004 4:55 AM
To: aix-l@Princeton.EDU
Subject: Two directories with same name in a single directory

Hi *,

        This is something peculiar i have observed in one of the home
directories. I could not understand how can there be 2 directories(usf3pres3
as seen in my listing) with same name. Can someone tell me how this would
have happened.

pkuma1@aq6000:/home/pkuma1 :ls -l|grep ^d
drwxr-xr-x 2 pkuma1 staff 512 11 Mar 20:50 decryptpro
drwxr-xr-x 2 pkuma1 staff 1024 12 Mar 15:25 logs
drwxr-xr-x 3 pkuma1 staff 512 13 Mar 17:45 misc
drwxr-xr-x 2 pkuma1 staff 1024 13 Mar 17:09 scripts
drwxr-xr-x 3 pkuma1 staff 512 13 Feb 10:25 usf3pres3
drwxr-xr-x 3 pkuma1 staff 512 08 Mar 10:10 usf3dbase1
drwxr-xr-x 3 pkuma1 staff 512 01 Mar 19:58 usf3pd1
drwxr-xr-x 3 pkuma1 staff 512 01 Mar 20:01 usf3pd2
drwxr-xr-x 3 pkuma1 staff 512 06 Mar 14:55 usf3pre4
drwxr-xr-x 17 pkuma1 staff 512 12 Mar 13:54 usf3pres1
drwxr-xr-x 16 pkuma1 staff 512 11 Mar 23:04 usf3pres2
drwxr-xr-x 13 pkuma1 staff 512 12 Mar 11:15 usf3pres3
drwxr-xr-x 15 pkuma1 staff 512 12 Mar 15:27 usf3pres4
drwxr-xr-x 14 pkuma1 staff 512 13 Mar 17:36 usf3pres5
drwxr-xr-x 11 pkuma1 staff 512 12 Mar 15:27 usf3pres6
drwxr-xr-x 2 pkuma1 staff 512 20 Jan 15:07 usf4pres1
drwxr-xr-x 4 pkuma1 staff 512 12 Mar 10:25 usf4pres2
pkuma1@aq6000:/home/pkuma1 :file usf3pres3
usf3pres3: directory
pkuma1@aq6000:/home/pkuma1 :file usf3pres3
usf3pres3: directory
pkuma1@aq6000:/home/pkuma1 :

TIA
Praveen.K

*********************
Internet communications are not necessarily secure and may be intercepted or
changed after they are sent. cahoot does not accept liability for any such
changes. If you wish to confirm the origin or content of this communication,
please contact the sender using an alternative means of communication.

This communication does not create or modify any contract.

This email may contain confidential information intended solely for use by
the addressee. If you are not the intended recipient of this communication
you should destroy it without copying, disclosing or otherwise using its
contents.

Please notify the sender immediately of the error.

cahoot is a division of Abbey National plc.
Abbey National plc is registered in England, registered number 2294747.
Registered Office: Abbey National House, 2 Triton Square, Regent's Place,
London, NW1 3AN.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:42 EDT