Skip to content

Instantly share code, notes, and snippets.

@behrtam
Last active August 29, 2015 14:20
Show Gist options
  • Save behrtam/5a9dde3d64c786953f59 to your computer and use it in GitHub Desktop.
Save behrtam/5a9dde3d64c786953f59 to your computer and use it in GitHub Desktop.
import sys
with open(sys.argv[1]) as source, open('ln_' + sys.argv[1], 'w') as target:
for i, line in enumerate(source):
target.write('{:02d}{}'.format(i,line[2:]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment