Skip to content

Instantly share code, notes, and snippets.

@fideloper
Created April 1, 2013 18:06
Show Gist options
  • Save fideloper/5286570 to your computer and use it in GitHub Desktop.
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.
#!/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