On Mon, 08 Sep 2003 12:02:01 +0800 Louie Miranda <[EMAIL PROTECTED]> 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. [EMAIL PROTECTED]:~$ touch -- --file [EMAIL PROTECTED]:~$ ls --file <snip unnecessary file listing> [EMAIL PROTECTED]:~$ rm -- --file [EMAIL PROTECTED]:~$ ls <snip unnecessary file listing> [EMAIL PROTECTED]:~$ 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
pgp00000.pgp
Description: PGP signature