Skip to content

Instantly share code, notes, and snippets.

@schmich
Created January 19, 2015 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save schmich/bdd6196c6b1262957910 to your computer and use it in GitHub Desktop.
Save schmich/bdd6196c6b1262957910 to your computer and use it in GitHub Desktop.
find . -type f -iname '*.php' -not -path "./vendor/*" -exec bash -c 'echo $0 && expand -t 2 -i "$0" >"$0.expand.tmp" && mv "$0.expand.tmp" "$0"' {} \;
@schmich
Copy link
Author

schmich commented Jan 19, 2015

Convert leading tabs to two spaces in all *.php files in the current directory tree while excluding the /vendor directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment