Skip to content

Instantly share code, notes, and snippets.

@SpongeBobSun
Forked from bluefuton/gist:1468061
Created January 15, 2016 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SpongeBobSun/14831d03f3373302e146 to your computer and use it in GitHub Desktop.
Save SpongeBobSun/14831d03f3373302e146 to your computer and use it in GitHub Desktop.
OS X: replace tabs with spaces in all files using expand
find . -name "*.php" | while read line; do expand -t 4 $line > $line.new; mv $line.new $line; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment