Created
October 9, 2016 18:21
-
-
Save kzahel/b3f8da788bd0a4c5b4a3541a9246262b to your computer and use it in GitHub Desktop.
delete .DS_Store and the other extended files ._*
This file contains hidden or 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
WHAT="rm" | |
#WHAT="echo" #uncomment this for dry run | |
echo "Going to remove mac extended files in $1" | |
read -p "press enter key to continue" | |
find $1 -type f -name "._*" -exec $WHAT "{}" \; | |
find $1 -type f -name ".DS_Store" -exec $WHAT "{}" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment