Xref: utzoo comp.unix.xenix:5996 comp.unix.questions:13617 comp.unix.wizards:16152 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sunybcs!oswego!stjohn From: stjohn@oswego.Oswego.EDU (Dave St. John) Newsgroups: comp.unix.xenix,comp.unix.questions,comp.unix.wizards Subject: Re: Ugly file name Keywords: rm cat mv regexp Message-ID: <1233@oswego.Oswego.EDU> Date: 16 May 89 05:14:19 GMT References: <128@tdl.UUCP> <7170@bsu-cs.bsu.edu> <1614@auspex.auspex.com> <448@hsi86.hsi.UUCP> Reply-To: stjohn@oswego.oswego.edu.Oswego.EDU (Dave St. John) Distribution: usa Organization: Instructional Computing Center, SUNY Oswego, Oswego NY Lines: 20 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? RTM, it says to use a - for file names that begin with a -. So you would type % rm - -badfile --------------------------------------------------------------------------- UUCP: {your favorite backbone}!sunybcs!oswego!stjohn INTERNET: stjohn@oswego.oswego.edu (129.3.1.1) US Mail: Dave St. John Instructional Computing Center SUNY College at Oswego Oswego, N.Y. 13126 Armadillo: to provide weapons to Spanish pickles ---------------------------------------------------------------------------