Xref: utzoo comp.unix.wizards:16161 comp.unix.questions:13634 comp.unix.xenix:6007 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!oliveb!sun!twinpeaks!jackh From: jackh%twinpeaks@Sun.COM (John Hevelin) Newsgroups: comp.unix.wizards,comp.unix.questions,comp.unix.xenix Subject: Re: Ugly file name Message-ID: <105096@sun.Eng.Sun.COM> Date: 16 May 89 17:44:16 GMT Sender: news@sun.Eng.Sun.COM Reply-To: jackh@sun.UUCP (John Hevelin) Organization: Sun Microsystems, Mountain View Lines: 20 This has always worked for me, but I haven't tested it against every conceivable possibility. 1. I use "ls -i" to obtain the i-number of the ugly file: % ls -i 12345 ugly'"^H^G& 98765 goodfile2 67890 goodfile1 43210 xyzzy 2. Then I use "find" to remove the file: % find . -inum 12345 -exec rm {} \; 3. If I want to save the contents of the file before removing it, I do something like: find . -inum 12345 -exec cat {} \; > goodfile