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 via email to