Last active
August 29, 2015 14:20
-
-
Save behrtam/5a9dde3d64c786953f59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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