MLUG: Re: [MLUG] deleting a file named '-'
Re: [MLUG] deleting a file named '-'
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
> Darn, I was going to ask how to delete a file with that name but I just
> figured it out:
>
> rm ./-
Actually, if you have a file with two dashes, it won't work.  The most 
reliable way to do it is:
rm -- filename
The -- tells it that there are no more options.
-- 
-- Igor
--
To manage your subscription, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/