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

Ed Greshko Ed.Greshko at greshko.com
Thu Oct 19 15:37:48 UTC 2006


James Wilkinson wrote:
> Yuandan Zhang wrote:
>> I incidantly created file named as '--min-size=8'.
> 
> kevin.kempter at 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.

My cats are getting really pissed off that everyone is trying to find
multiple ways of skinning them.

Can't anyone be happy with simply doing a "man rm" to learn how it is done?


-- 
There's a lot of BIG MONEY in MISERY if you have an AGENT!!




More information about the fedora-list mailing list