[Tutor] Read from large text file, find string save 1st string of each line where it appeared.

2015-12-28 Thread Nnamdi Anyanwu
I think what he's looking for is something similar to grep 6174625 | awk -F ":" {print $1} I don't know if there is a more efficient Python built-in used to search for the line containing 6174625 (grep in python) other than simply iterating though the entire file, with a for loop, line-by-line. Yo

Re: [Tutor] Using python 3 on Ubuntu 14.04

2015-12-23 Thread Nnamdi Anyanwu
If you're installing modules with pip, install pip3 and install the appropriate modules using pip3 instead of using regular pip. On Dec 24, 2015 12:12 AM, "Alex Kleider" wrote: > On 2015-12-23 14:58, Jim Byrnes wrote: > >> I am in the process of moving from unbutu 12.04 to 14.04. I was doing >> s