Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
delete .DS_Store and the other extended files ._*
#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