浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Clean all .pyc files from current project. It cleans all the files recursively. | commandlinefu.com

Clean all .pyc files from current project. It cleans all the files recursively.

Terminal - Clean all .pyc files from current project. It cleans all the files recursively.
find . -name "*.pyc" -exec rm {} \;
2009-02-16 17:15:58
User: nsmgr8
Functions: find rm
Clean all .pyc files from current project. It cleans all the files recursively.

For a python project, sometimes I need to clean all the compiled python files. I have an alias 'rmpyc' to this command. This really saves me a lot of typing and hunting throughout the folders to delete those files.

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
find . -type f -name "*.pyc" -delete;
posted on 2012-12-17 15:27  lexus  阅读(191)  评论(0)    收藏  举报