Thanks Bob.
And we can rename the directory in the following way also.
find . -inum 208946 -exec mv {} new.filename \;
Regards,
Dayakar.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 9:18 PM
To: Reddy, Loka Dayakar, JR (Dayakar)
Cc: [email protected]
Subject: Re: I found one bug in HP-UX fortuna B.11.11 U 9000/800
4254029964
Reddy, Loka Dayakar, JR (Dayakar) wrote:
> I did ls -ltr
> It displayed directories and files
> In my directory I found one directory with the "om" name. Even I didn't
> create that directory.
> Then i did cd om, but it said "ksh: om: not found"
It is very likely that the name of the directory contains characters
which are not being displayed properly on your terminal. Therefore
the name is not really "om" but really something else entirely. That
is likely to be the reason you could not cd there.
Use the -b option to ls to display non-printable characters as escape
sequences.
ls -lb
There are several ways to rename those files. I find the easiest is
to allow the shell to expand it automatically. But that is hard to
describe. Easier is to grip upon a part of the file and to use
wildcards for the other parts. Assuming that "om" is the ending part
of the name you might try this.
ls ld *om
If that shows only one name then you might try to rename it.
mv *om bettername
Bob
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils