Problem removing a file

John B. Milton jbm at uncle.UUCP
Mon Jan 30 11:35:53 AEST 1989


In article <695 at flatline.UUCP> erict at 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 at uncle.UUCP, n8emr!uncle!jbm at osu-cis.cis.ohio-state.edu
(614) h:294-4823, w:764-2933;  Got any good 74LS503 circuits?



More information about the Comp.sys.att mailing list