Xref: utzoo comp.unix.xenix:6040 comp.unix.questions:13689 comp.unix.wizards:16189 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-sdd!ucsdhub!sdsu!turtle From: turtle@sdsu.UUCP (Andrew Scherpbier) Newsgroups: comp.unix.xenix,comp.unix.questions,comp.unix.wizards Subject: Re: Ugly file name Keywords: rm cat mv regexp Message-ID: <3802@sdsu.UUCP> Date: 18 May 89 04:38:53 GMT References: <128@tdl.UUCP> <7170@bsu-cs.bsu.edu> <1614@auspex.auspex.com> <448@hsi86.hsi.UUCP> Reply-To: turtle@sdsu.UUCP (Andrew Scherpbier) Distribution: usa Organization: San Diego State University Math/Sciences Dept. Lines: 22 In article <448@hsi86.hsi.UUCP> derek@hsi86.UUCP (Derek Lee-Wo) writes: >In article <1614@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >:Helpful Hints #1273: if you have a file name containing characters that >:the shell assigns special significance to, put the file name in single >:quotes when typing it as a file name: >: >: % rm 'odds&ends' >: > >This doesn't work for filenames that start with a minus. eg -badfile >Anyone know how to erase such files with whipping up a short C program? Besides being able to do this: rm ./-badfile you can also do rm -- -badfile --Andrew "Race Turtle" Scherpbier