In article 482D8875.1050709@pagestation.com, Jerry Geis geisj@pagestation.com wrote:
Do you have a file name that starts with a "-" in your directory?
Mogens
Yes I do actually. There is a -f filename of which I dont need.
I tried rm *f and it is not removing it. No what?
Ouch! That may well have deleted any other files with a name ending in f, while leaving the file -f still there!
[tony@softins tmp]$ touch ./-f ae af ag be bf bg [tony@softins tmp]$ ls -f ae af ag be bf bg [tony@softins tmp]$ echo *f -f af bf [tony@softins tmp]$ rm *f [tony@softins tmp]$ ls -f ae ag be bg
Easiest way to remove the file -f is: rm ./-f
Cheers Tony