Skip to content

Instantly share code, notes, and snippets.

@dprevite
Forked from schmich/tabs-to-spaces.sh
Last active September 17, 2015 22:30
Show Gist options
  • Save dprevite/ed38ad65e87645fde7e0 to your computer and use it in GitHub Desktop.
Save dprevite/ed38ad65e87645fde7e0 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"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment