Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hc!beta!cmcl2!esquire!caggiano From: caggiano@esquire.UUCP (Frank Caggiano) Newsgroups: comp.unix.questions Subject: Re: Accessing files by inode #s Message-ID: <316@esquire.UUCP> Date: 3 Feb 88 18:05:54 GMT References: <11470@brl-adm.ARPA> Reply-To: caggiano@esquire.UUCP (Frank Caggiano) Organization: DP&W, New York, NY Lines: 34 In article <11470@brl-adm.ARPA> iunix1@almsa-1.arpa (Will Martin) writes: > >One common problem we have encountered here in using UNIX-based office >automation systems is people accidentally creating files with odd names, [ Goes on to request info on how to remove the file with the odd name ] >Regards, >Will Martin >wmartin@ALMSA-1.ARPA (on USENET try "...!uunet!almsa-1.arpa!wmartin") Two methods that have always worked for me are: rm -i [some combination of chars to narrow done the list] This will ask you for each file if it should be removed, just skip the ones you don't want removed and answer y to the errant file. Be careful with this however as foo^Ybar and foobar will both show up as foobar. If there are a number of files you want removed or you don't feel like stepping through rm -i use: %ls > filename %vi filename Now remove all lines in the file which do not match the files you want removed then add a rm (or rm -i if you are paranoid) in front of each filename left. exit vi then run %sh filename (or make filename executable and run it) Regards.