Created
April 1, 2013 18:06
-
-
Save fideloper/5286570 to your computer and use it in GitHub Desktop.
Recursively remote .DS_Store and ._* files from directly of shell script. Useful addition to the root directory of a project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
find $DIR -name ".DS_Store" -print0 | xargs -0 rm -rf | |
find $DIR -name "._*" -print0 | xargs -0 rm -rf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment