tag:blogger.com,1999:blog-8227451082901531762.post1414659395890721715..comments2024-03-27T09:55:46.072+02:00Comments on Programmer blog: Delete all '.pyc' files recursively OS Xgarmoncheghttp://www.blogger.com/profile/01374837358090129603noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8227451082901531762.post-89681981394566183232012-04-25T03:44:22.425+03:002012-04-25T03:44:22.425+03:00A slightly modified version that removes files in ...A slightly modified version that removes files in bulk, as in: "rm file1 file2 file3" instead of "rm file1; rm file2; rm file3".<br /><br />find . -name \*.pyc -exec rm \{\} \+Anonymoushttps://www.blogger.com/profile/12193957817864777364noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-182676468430353962012-03-30T00:21:58.023+03:002012-03-30T00:21:58.023+03:00для Ubuntu Тоже канает. Добавил алиас в .bashrc и ...для Ubuntu Тоже канает. Добавил алиас в .bashrc и работает.Eugene MechanisMhttps://www.blogger.com/profile/13088779286427498279noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-47298122432769201672012-03-23T13:01:53.882+02:002012-03-23T13:01:53.882+02:00yes thanks... nice idea...yes thanks... nice idea...garmoncheghttps://www.blogger.com/profile/01374837358090129603noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-73294071932353116002012-03-23T10:11:07.834+02:002012-03-23T10:11:07.834+02:00I came here to read your article on using South, a...I came here to read your article on using South, and found this. It's almost identical to my own setup, except I have it as a bash alias, also delete .pyo files, and use xargs for speed. If you're interested it's:<br /><br />alias pyc='find . \( -iname \*\.pyc -o -iname \*\.pyo \) -print0 | xargs -0 rm -f'Leon Matthewshttps://www.blogger.com/profile/15942499189420154337noreply@blogger.com