Linked by pkrumins on Thu 19th Feb 2009 12:17 UTC
General Development If you have ever been interested in awk and sed Unix utilities, then you probably know about the awk1line.txt and sed1line.txt files that are floating around the Internet. Each file contains around 80 idiomatic sed and awk one-liners for performing various text modification tasks.
Permalink for comment 350033
To read all comments associated with this story, please click here.
RandomGuy
Member since:
2006-07-30


for line open("file.txt"): do_stuff_with(line)

That should be:
for line in open("file.txt"): do_stuff_with(line)

If that means significant extra work for you, you need a harder problem domain

Agreed.

Reply Parent Score: 2