On Sun, 5 Mar 2000, Deepak Deshpande wrote:

> i wanna know how to delete a file by the name "-l"  i have tried using
> single as well as double quotes to no avail i hope some1 can gimme a n
> answer to this

First, if you want a proper reply to your query, put a proper subject line
in your mails.

Now, for your answer.  The man pages say that if you want to delete a file
starting with a - then use -- before the filename.

rm -- -l

The -- tells rm that command line options are over, and everything
following is to be treated as a file name.  You could also do 

rm ./-l

If you're really weird, you may want to start up pico, then do a Ctrl+R,
then do a CTR+T, then get your cursor over the file you want to delete,
and press D.  Confirm the deletion.

Philip


To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to