Skip to content

Instantly share code, notes, and snippets.

@kzahel
Created October 9, 2016 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kzahel/b3f8da788bd0a4c5b4a3541a9246262b to your computer and use it in GitHub Desktop.
Save kzahel/b3f8da788bd0a4c5b4a3541a9246262b to your computer and use it in GitHub Desktop.
delete .DS_Store and the other extended files ._*
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