[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do you remove files with bad/wierd names



On Wed, Mar 22, 2000 at 10:14:19PM -0500, Marshal Kar-Cheung Wong wrote:
> I was wondering how to remove a file by the name of --help.tgz?
> (Don't ask...Okay if you really must know, I typed in tgz --help and I
> get that file.  There's no man page for tgz, and I think tgz shouldn't
> accept things starting with -- as file names...)  rm always takes it
> as an option, even if quotes, double-quoted, backslashed,
> regular-expressioned.  Any suggestions?

like this:

[eb@socrates tmp]$ touch -- --help
[eb@socrates tmp]$ ls -l
total 0
-rw-r-----    1 eb       eb              0 Mar 22 21:40 --help
[eb@socrates tmp]$ rm -- --help
[eb@socrates tmp]$ ls -l
total 0
[eb@socrates tmp]$


-- 
Ethan Benson
http://www.alaska.net/~erbenson/


Reply to: