Shell scripting: remove .DS_Store and ._* files recursively on Linux or Mac








find . -name ".DS_Store" -print0 | xargs -0 rm -rf
find . -name "._*" -print0 | xargs -0 rm -rf
find . -name ".DS_Store" -delete
find . -name "._*" -delete
find . \( -name '.DS_Store' -or -name '._*' \) -delete



No comments:

Post a Comment