filenames with leading dashes

Brian Tew btew at nyx.net
Sat Jun 18 15:44:10 UTC 2005


Most commands use two hyphens to signify
"no more extensions."  It's a *nix convention.
So to remove all files starting with a hyphen, do this:

rm -- -*

or this:

rm -- \-*




More information about the Blinux-list mailing list