Skip to content

Instantly share code, notes, and snippets.

@biojazzard
Last active December 31, 2015 20:49
Show Gist options
  • Save biojazzard/8043074 to your computer and use it in GitHub Desktop.
Save biojazzard/8043074 to your computer and use it in GitHub Desktop.
Delete OSX "hidden files" on a server, eg ssh.
# Post Install Script: delete OSX hidden Files
find ./ -name ._\* -print0 | xargs -0 rm -f
find ./ -name .DS_Store -print0 | xargs -0 rm -f
# Post Install Script: delete project keys
find ./ -name .bowerrc -print0 | xargs -0 rm -f
find ./ -name .gitignore -print0 | xargs -0 rm -f
find ./ -name *.command -print0 | xargs -0 rm -f
find ./ -name Gruntfile.* -print0 | xargs -0 rm -f
find ./ -name bower.json -print0 | xargs -0 rm -f
find ./ -name package.json -print0 | xargs -0 rm -f
find ./ -name project.json -print0 | xargs -0 rm -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment