iPython – Tips

iPython – Tips

To put a file to a list, split it and print only the first column

file = ! cat file.txt
for x in file:
 b=x.split(' ')
 print b[0]