Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!uwvax!tank!uxc!uxc.cso.uiuc.edu!gistdev!dlp From: dlp@gistdev.UUCP Newsgroups: comp.unix.wizards Subject: Re: Ugly file name Message-ID: <8800016@gistdev> Date: 16 May 89 21:09:00 GMT References: <128@tdl.UUCP> Lines: 10 Nf-ID: #R:tdl.UUCP:128:gistdev:8800016:000:305 Nf-From: gistdev.UUCP!dlp May 16 16:09:00 1989 => Written 12:54 pm May 15, 1989 by hsi.UUCP!derek => : % 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? Try "rm -- -i -r -f" This will remove three files, named "-i" and "-r" and "-f".