Created
August 26, 2012 19:16
-
-
Save typeoneerror/3482773 to your computer and use it in GitHub Desktop.
Find files and folders that aren't .svn and chmod them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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