In article <[EMAIL PROTECTED]>,
Jerry Geis <[EMAIL PROTECTED]> 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!

[EMAIL PROTECTED] tmp]$ touch ./-f ae af ag be bf bg
[EMAIL PROTECTED] tmp]$ ls
-f  ae  af  ag  be  bf  bg
[EMAIL PROTECTED] tmp]$ echo *f
-f af bf
[EMAIL PROTECTED] tmp]$ rm *f
[EMAIL PROTECTED] tmp]$ ls
-f  ae  ag  be  bg

Easiest way to remove the file -f is: rm ./-f

Cheers
Tony
-- 
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to