Skip to content

Instantly share code, notes, and snippets.

@shawnhermans
Created January 19, 2013 19:12
Show Gist options
  • Save shawnhermans/4574439 to your computer and use it in GitHub Desktop.
Save shawnhermans/4574439 to your computer and use it in GitHub Desktop.
f = open('gps-ops.txt')
out = open('gps-ops.tsv','wb')
count = 0
output = ''
for row in f:
if count % 3 != 2:
output += row.strip() + '\t'
else:
output += row
out.write(output)
output = ''
count += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment