Skip to content

Instantly share code, notes, and snippets.

@coela
Created August 22, 2017 13:13
Show Gist options
  • Save coela/cbe36b4cfaeec5b2f40fa326bbd15bf6 to your computer and use it in GitHub Desktop.
Save coela/cbe36b4cfaeec5b2f40fa326bbd15bf6 to your computer and use it in GitHub Desktop.
import sys
fileHandle = open(sys.argv[1],'r')
for line in fileHandle:
line = line.rstrip()
#print line
lines = line.split(" ,")
#print lines
for i,ent in enumerate(lines):
if i == 3:
break
if i >= 1:
print ent[1:]
else:
print ent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment