Xref: utzoo unix-pc.general:2142 comp.sys.att:5386 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!mit-eddie!killer!osu-cis!n8emr!uncle!jbm From: jbm@uncle.UUCP (John B. Milton) Newsgroups: unix-pc.general,comp.sys.att Subject: Re: Problem removing a file Message-ID: <472@uncle.UUCP> Date: 30 Jan 89 01:35:53 GMT References: <695@flatline.UUCP> Reply-To: jbm@uncle.UUCP (John B. Milton) Organization: U.N.C.L.E. Lines: 18 In article <695@flatline.UUCP> erict@flatline.UUCP (j eric townsend) writes: [ made a filed name -ef, can't remove it] rm, like most utilities uses getopt(3) to get the switches from the command line. A quick look at the man page will give youyour answer. If you put an option "--" on the command line, getopt will stop looking at switches. What you want is: rm -- -ef Ouch, too simple. The -- feature is very valuable with grep: grep -- -rf script John -- John Bly Milton IV, jbm@uncle.UUCP, n8emr!uncle!jbm@osu-cis.cis.ohio-state.edu (614) h:294-4823, w:764-2933; Got any good 74LS503 circuits?