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

Re: how can you delete chars w/ ---



On Mon, 08 Sep 2003 12:02:01 +0800
Louie Miranda <louie@axishift.ath.cx> wrote:

> How can you delete a file with -- on the first part.
> 
> ex: --exclude=oldwebsite
> 
> Its sitting on harddrive for weeks now..
> 
> webdev:/tmp/ww# rm -f "--exclude\=oldwebsite"
> rm: unrecognized option `--exclude\=oldwebsite'
> Try `rm --help' for more information.

jkoenig@note:~$ touch -- --file
jkoenig@note:~$ ls 
--file
<snip unnecessary file listing>
jkoenig@note:~$ rm -- --file 
jkoenig@note:~$ ls
<snip unnecessary file listing>
jkoenig@note:~$ 

the -- option tells it there will be no more options. See the man page
for more details.
-- 
-johann koenig
Now Playing: Rollins Band - Inhale Exhale : Come In And Burn
Today is Sweetmorn, the 32nd day of Bureaucracy in the YOLD 3169
My public pgp key: http://mental-graffiti.com/pgp/johannkoenig.pgp

Attachment: pgpcH2MuArS4m.pgp
Description: PGP signature


Reply to: