14 Oct
2005
14 Oct
'05
11:12 a.m.
On Thu, Oct 13, 2005 at 08:25:24PM +0200, Karl Hiramoto wrote:
hey guys, this would seem rather basic. How to delete a file, but i have a problem. I want to delete a file called "--exclude". Any ideas?
Heh. I used to ask this on interviews. ;) "rm -- --exclude"
# rm -i * rm: unrecognized option `--exclude'
the shell expanded * to include --exclude which reads as an option.
# rm -f "--exclude" rm: unrecognized option `--exclude'
ditto.
# rm -f \-\-exclude rm: unrecognized option `--exclude'
ditto. -- Randomly Generated Tagline: "I love deadlines. I like the whooshing sound they make as they fly by." - Douglas Adams