📜  bash: bin rm: 参数列表太长 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:07.211000             🧑  作者: Mango

代码示例2
# Non recursive

# [1] rm specific file extension
find . -maxdepth 1 -name "*.pdf" -print0 | xargs -0 rm

# [2] chmod files
find . -maxdepth 1 -name "*.html" -print0 | xargs -0 chmod 777