Skip to content

Instantly share code, notes, and snippets.

@benatkin
Created December 31, 2008 17:17
Show Gist options
  • Save benatkin/42055 to your computer and use it in GitHub Desktop.
Save benatkin/42055 to your computer and use it in GitHub Desktop.
# convert from 3 spaces to 4 spaces
cat test.py | unexpand -t 3 --first-only | expand -t 4 --initial
# requires GNU expand & unexpand
# on mac, run "sudo port install macports" & prefix unexpand/expand with a g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment