Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpfcdc!hpfcmr!rdg From: rdg@hpfcmr.HP.COM (Rob Gardner) Newsgroups: comp.sys.hp Subject: Re: Trying to remove a file called "-ls" Message-ID: <1080040@hpfcmr.HP.COM> Date: 15 Mar 89 19:41:06 GMT References: <570@sdrc.UUCP> Organization: HP Fort Collins, CO Lines: 32 Also: rm -ir . rm -- -ls rm ./-ls rm foo -ls /etc/unlink -ls # as root etc, etc. Related stuff: how to remove a file with control characters, like "foovbar" but with a backspace embedded in it? echo "rm foov\010bar" | sh And there's always "ls | od -c" or "od -c ." to find out exactly what's in the filename anyway. Of course, you can write a C program to do any of this trivially: main() { char foo[14]; foo[0] = 'f'; foo[1] = 'o'; /* etc */ foo[10] = '\0'; unlink(foo); } raab