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

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



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


Reply to: