Skip to content

Instantly share code, notes, and snippets.

@ringsaturn
Forked from bluefuton/gist:1468061
Created January 29, 2018 14:58
Show Gist options
  • Save ringsaturn/51bd15bbc21ff6c86d6aed528f1d9f0c to your computer and use it in GitHub Desktop.
Save ringsaturn/51bd15bbc21ff6c86d6aed528f1d9f0c to your computer and use it in GitHub Desktop.
OS X: replace tabs with spaces in all files using expand
find . -name "*.md" | 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