Re: Two directories with same name in a single directory

From: Support (support@XIATECS.NET)
Date: Mon Mar 15 2004 - 10:40:43 EST


As Mr. Thompson would say, you got to take the cat to the vet. Run the
following command: ls -ld | grep ^d | cat -vet
If there are any special characters in the directory name, it will
display them. To remove or rename the directory, use the ls -li command
to get the inode number and then use the find command with the -inum
switch.
EX:
/tmp> ls -i | grep ABC
 4124 ABCD
/tmp> find . -inum 4124
./ABCD
/tmp> find . -inum 4124 -exec mv {} ABC \;
/tmp> find . -inum 4124
./ABC

Thanks,
_________________________________

Sukhjeet Singh
Senior Technology Consultant
IBM Certified Specialist - AIX
Xiatecs Systems Consultants Inc.
Tel: +1.514.668.0838
www.xiatecs.net - ssingh@xiatecs.net
_________________________________

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Kumar, Praveen (cahoot)
Sent: Saturday, March 13, 2004 12:55 PM
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