Xref: utzoo comp.unix.xenix:6034 comp.unix.questions:13684 comp.unix.wizards:16187 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!sumax!amc-gw!sigma!markk From: markk@sigma.UUCP (Mark Kimmerly) Newsgroups: comp.unix.xenix,comp.unix.questions,comp.unix.wizards Subject: Re: Ugly file name Keywords: rm cat mv regexp Message-ID: <2362@sigma.UUCP> Date: 17 May 89 20:14:47 GMT References: <7170@bsu-cs.bsu.edu> <1614@auspex.auspex.com> <448@hsi86.hsi.UUCP> Reply-To: markk@sigma.UUCP (Mark Kimmerly) Distribution: usa Organization: Summation Inc, Kirkland WA Lines: 12 In article <448@hsi86.hsi.UUCP> derek@hsi86.UUCP (Derek Lee-Wo) writes: > >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 - -badfile' The first '-' tells rm to treat everything that follows as arguments, not options. -- Mark Kimmerly markk@sigma.UUCP Summation Inc. 1-206-823-7964