Skip to content

Instantly share code, notes, and snippets.

@phackwer
Forked from bluefuton/gist:1468061
Created November 5, 2017 09:56
Show Gist options
  • Save phackwer/a2d56b0824c091509f5555112de785b4 to your computer and use it in GitHub Desktop.
Save phackwer/a2d56b0824c091509f5555112de785b4 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