您的位置:首页 > 其它

one command to delete all files with name "filename" in current dir and all its sub-dirs

2014-06-17 21:20 645 查看
find  path_name  -namefile_name | xargs rm -rf

such as, remove all the .git folders in current directory and all its sub-directories:

find ./  -name .git | xargs rm -rf

remove all *.o files in current directory and all its sub-directories:

find ./ -name *.o | xargs rm -rf
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐