[NTLUG:Discuss] Removing lots of Files - help.

Fred James fredjame at concentric.net
Sun Apr 6 21:52:45 CDT 2003


Pervaz Allaudin wrote:

> Pardom my ignorance - but would not
>
> rm -rfv *.*~
>
> also work just as well or would it necessarily be too dangerous.
>
> Pervaz
>
> Bobby Sanders wrote:

Options:
r = recursive (remove the contents of directories recursively)
f = force (ignore nonexistent files, never prompt)
v = verbose (explain what is being done)
Expression:
* = any number (including none) of any character
. = .
* = any number (including none) of any character
~ = ~
This would insist on a dot (.) somewhere before the tilde (~) - if there 
is no dot, there is no match - if that's what you want, cool.

>
>> Thanks David.
>>
>> I don't to a _lot_ of administration, completely forgot about the exec
>> switch and was too dumb to think about doing man find. Yuk.
>>
>> Thanks again.
>>
>> Bobby
>>
>> --On Sun, 06 Apr 2003 13:49:33 -0500, David Camm 
>> <dcamm at advwebsys.com> said:
>>
>>  DC> find / -name '*~' -exec rm -f {} \;
>>
>> Bobby Sanders wrote:
>>  >> I want to remove all of the files on my system which end in
>>  >> tilde, ~.  I'm running bash, know this should be easy, have read
>>  >> lots of Cameron's book, which I love, but can't put my finger on
>>  >> this.
>>  >>  >> Help please.  Thanks.
>>
>> _______________________________________________
>> https://ntlug.org/mailman/listinfo/discuss
>>
>>  
>>
>
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
>


-- 
"It's not nice to fool Mother OS." --anonymous





More information about the Discuss mailing list