Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Created August 26, 2012 19:16
Show Gist options
  • Select an option

  • Save typeoneerror/3482773 to your computer and use it in GitHub Desktop.

Select an option

Save typeoneerror/3482773 to your computer and use it in GitHub Desktop.
Find files and folders that aren't .svn and chmod them.
# List files
find . -name .svn -prune -o -type f -print;
# List directories
find . -name .svn -prune -o -type d -print;
# Execute chmod for files
find . -name .svn -prune -o -type f -exec chmod 644 {} \;
# Execute chmod for directories
find . -name .svn -prune -o -type d -exec chmod 755 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment