[CentOS] Re: has something happened to grep
Tony Mountifield
tony at softins.clara.co.ukFri May 16 16:09:34 UTC 2008
- Previous message: [CentOS] Re: has something happened to grep
- Next message: [CentOS] CentOS-announce Digest, Vol 39, Issue 7
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <482D8875.1050709 at pagestation.com>, Jerry Geis <geisj at 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 at softins tmp]$ touch ./-f ae af ag be bf bg [tony at softins tmp]$ ls -f ae af ag be bf bg [tony at softins tmp]$ echo *f -f af bf [tony at softins tmp]$ rm *f [tony at softins tmp]$ ls -f ae ag be bg Easiest way to remove the file -f is: rm ./-f Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org
- Previous message: [CentOS] Re: has something happened to grep
- Next message: [CentOS] CentOS-announce Digest, Vol 39, Issue 7
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list