Xref: utzoo comp.unix.wizards:16218 comp.unix.questions:13730 comp.unix.xenix:6057 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!albanycs!crdgw1!uunet!mcvax!hp4nl!rivm!ccea3 From: ccea3@rivm.UUCP (Adri Verhoef) Newsgroups: comp.unix.wizards,comp.unix.questions,comp.unix.xenix Subject: Re: Ugly file name Keywords: od echo rm Message-ID: <1342@rivm05.UUCP> Date: 19 May 89 09:46:08 GMT References: <105096@sun.Eng.Sun.COM> Reply-To: ccea3@rivm05.UUCP (Adri Verhoef) Organization: RIVM, Bilthoven, The Netherlands Lines: 12 >1. I use "ls -i" to obtain the i-number of the ugly file >2. Then I use "find" to remove the file: > % find . -inum 12345 -exec rm {} \; If your terminal gets stuck (or bananas) when listing the directory containing the offending filename (so "rm -i" gets you stuck, too), You might want to try: 1. od -c directoryname_containing_offending_entry 2. rm -f ./"`echo 'offending_filename_in_octal_codes'`" Provided your echo echoes e.g. '\0321' as the corresponding value of the octal char \121 (i.e. 'Q') with its high order bit set.