[SunHELP] how do i delete a directory has name with spare rm -rf " test 123"
Chris Hall
chall at verio.net
Tue May 13 13:34:57 CDT 2003
[viet_nguyen14 at yahoo.com] Mon, May 12, 2003 at 04:39:19PM -0700 wrote:
>
First, 'cd' to the directory-with-the-problem. Then type 'ls -i' to obtain
the inode number, say NNN, of the weird filename. Then, use the '-inum' option
of find (it seems to be present in all versions of find, but SCO seems to have
dropped any reference to -inum in the manual page for find):
find . -inum NNN -exec rm {} \;
Perhaps you first want to see if the file is of interest, and find that you
can't feed its name to 'cat' any more than you could feed it to 'rm'. Then:
find . -inum NNN -exec mv {} newname \;
--
Thanks,
- Chris Hall
"The growing use of e-mail, not to mention Web-page publishing, threatens
to reverse the trend towards illiteracy among the supposedly educated without,
at the same time improving their spelling".
-- Michael Swaine, Dr. Dobb's Journal
More information about the SunHELP
mailing list