Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!adm!xadmx!ritter@cs.msstate.edu From: ritter@cs.msstate.edu (Thomas H. Ritter) Newsgroups: comp.unix.questions Subject: Filenames and Inode Numbers Message-ID: <20373@adm.BRL.MIL> Date: 26 Jul 89 20:18:58 GMT Sender: news@adm.BRL.MIL Lines: 25 Rick Geymont 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. > >Works every time... > Well almost every time. Our Suns have the -inum option but our Unisys 5000 SYSV3.1 does not. The interesting thing is that the following : rm - -name works and removes the file called "-name" BUT gives an an error anyway. 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? Tom Ritter ritter@cs.msstate.edu