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

Re: rm a file with name '--min-size=8'



Yuandan Zhang wrote:
> I incidantly created file named as '--min-size=8'.

kevin kempter dataintellect com wrote:
> try this:
> $ rm -i *
> 
> answer no for all files in the dir except for the one you want to delete
> 
> or something like rm -i *size*

That won't actually work. The shell will expand either "*" or "*size*"
to include "--min-size=8" before rm sees it, and then rm will complain.

The double dashes are the easiest way to go.

Hope this helps,

James.
-- 
E-mail:     james@ | His Mind Raced...unfortunately, it did not race
aprilcottage.co.uk | particularly well, and failed to even place at the
                   | Cerebral Derby.
                   |     -- http://www.deviantart.com/view/27304494/


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