Filenames and Inode Numbers
Brandon S. Allbery
bsa at telotech.UUCP
Tue Aug 1 05:43:28 AEST 1989
In article <20373 at adm.BRL.MIL>, ritter at cs (Thomas H. Ritter) writes:
+---------------
| Rick Geymont <GU.GEYMONT%SCIENCE.UTAH.EDU at wasatch.utah.edu> writes:
| >The easiest way I have found to remove files with special characters in the
| >name is to do the following:
| >do an 'ls -i' and get the inode number
| >type 'find . -inum # -exec rm {} \;' where # is the inode number.
|
| Well almost every time. Our Suns have the -inum option but
| our Unisys 5000 SYSV3.1 does not.
|
| BTW, I can do an ls -i and see the inode information but
| what other ways could I remove a file based on inode number?
+---------------
rm `/etc/ncheck -i ...`
++Brandon
--
-=> Brandon S. Allbery @ telotech, inc. (I do not speak for telotech.) <=-
Any comp.sources.misc postings sent to this address will be DISCARDED -- use
allbery at uunet.UU.NET instead. My boss doesn't pay me to moderate newsgroups.
** allbery at NCoast.ORG ** uunet!hal.cwru.edu!ncoast!{allbery,telotech!bsa} **
More information about the Comp.unix.questions
mailing list