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.
Thread beginning with comment 349811
To view parent comment, click here.
To read all comments associated with this story, please click here.
massysett
Member since:
2007-12-04

I've never considered awk hard to use. You can learn the basics in about thirty pages. Have you ever sat down and read "Effective GAWK Programming"?

http://www.gnu.org/software/gawk/manual/gawk.html

sed is not hard either. Python is great too, but for little quick jobs awk is great. awk can be just as maintainable if you write it cleanly (and I've seen python code that is a mess, because you can write messy Python too.) But for a one liner, who cares if it is maintainable? You use it once then throw it out!

Reply Parent Score: 3

AtariFan Member since:
2009-01-15

This manual has 360 pages (pdf-version). I would like to learn the basics of awk and has already bought a German cheap reference by O'Reilly.
Do you know a shorter tutorial?

Reply Parent Score: 1

pkrumins Member since:
2008-05-07

Do you know a shorter tutorial?


Yep: http://www.grymoire.com/Unix/Awk.html

Reply Parent Score: 2