查找符合条件的文件并删除
找到test开头的文件并删除
find -name ‘test*’ | xargs rm -rf
如果指定递归深度 需要-maxdepth参数
find -maxdepth 3 -name ‘test*’ | xargs rm -rf
查找符合条件的文件并删除
找到test开头的文件并删除
find -name ‘test*’ | xargs rm -rf
如果指定递归深度 需要-maxdepth参数
find -maxdepth 3 -name ‘test*’ | xargs rm -rf