removing *.orig files

John Heim jheim at math.wisc.edu
Tue Aug 1 11:48:47 EDT 2006


I would do a find with a -exec. Something like this:

find /usr/src/linux -name .orig -exec rm {} \;



chuckh at hhs48.com said the following on 8/1/2006 10:12 AM:
> I did not check the man page first to see if I needed -r or -R, and some 
> commands need one and some need the other. chmod and chown for instance 
> need it capitalized. That's another reason not to suggest using the rm 
> command on a line that also has the asterisk on it somewhere <smile>
> 
> Chuck
> 
> 
> On Tue, Aug 01, 2006 at 06:31:45AM -0700, Steve Holmes wrote:
>> Yes, that would work too.  The only problem for me is so often, I do a
>> "rm -fr *" that I might give that suggestion to someone and forget to
>> include the *.orig; ooops, all his files would be gone:).
>>
>> I noticed you had a Cap R there instead of normal r.  Is that
>> intentional? I thought lower case r is used for recursive deletes.
>> That's what I use all the time for my recursive deletes.
>>
>> On Mon, Jul 31, 2006 at 07:23:13PM -0400, Charles Hallenbeck wrote:
>>> Steve,
>>>
>>> Why not cd to the linux source tree directory and do this:
>>>
>>> rm -R *.orig
>>>
>>> But I agree with Luke, actually. You are talking of a several hundred MB 
>>> tree, and a very very small amount of space for the *.orig files.
>>>
>>> Chuck
>>>
>>> -- 
>>> The Moon is Waxing Crescent (37% of Full)
>>> Only 10 kinds of people: those who do binary, and those who do not.
>>> But you can get a few downloads from http://www.mhcable.com/~chuckh
>>>   and remember, INFORMATION WANTS TO BE FREE!
>>>
>>> _______________________________________________
>>> Speakup mailing list
>>> Speakup at braille.uwo.ca
>>> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>>>
>>>
>> -- 
>> HolmesGrown Solutions
>> The best solutions for the best price!
>> http://holmesgrown.ld.net/
>>
>> _______________________________________________
>> Speakup mailing list
>> Speakup at braille.uwo.ca
>> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 

-- 
John Heim
263-4189 / jheim at math.wisc.edu / http://www.math.wisc.edu/~jheim/




More information about the Speakup mailing list