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

Re: How to remove extra files created when building a package?



On 06/29/2017 09:34 PM, Greg Wooledge wrote:
> On Thu, Jun 29, 2017 at 09:30:26PM +0200, Thomas Nyberg wrote:
>> 	$ for file in $(find . -name '*.pyc'); do rm -v $file; done
>> 	$ for file in $(find . -name '*.o'); do rm -v $file; done
>> 	$ for file in $(find . -name '*.so'); do rm -v $file; done
> 
> *cringe* No, no, no....
> 
> find . -name '*.pyc' -print -delete
> 
> http://mywiki.wooledge.org/BashPitfalls#pf1
> 
Thanks for the the information. In my case it didn't matter since the
file names were all "standard" (I looked at them), but I'll try to
remember this going forward.

Cheers,
Thomas


Reply to: