Created
August 22, 2017 13:13
-
-
Save coela/cbe36b4cfaeec5b2f40fa326bbd15bf6 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 | |
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