Skip to content

Instantly share code, notes, and snippets.

@clairvy
Created September 10, 2009 08:08
Show Gist options
  • Save clairvy/184406 to your computer and use it in GitHub Desktop.
Save clairvy/184406 to your computer and use it in GitHub Desktop.
find . -type f -ls |egrep -v '.git'|perl -ne '/ -..([-x])..([-x])..([-x]) /&&do{$1 eq"x"or$2 eq"x"or$3 eq"x"}&&print' | awk '{print $11}'|egrep -vi '\.(pl|cgi)$' | xargs chmod -x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment