News for hackers. Stuff that matters.
Re:Awk by example, Part 1 -- by lidmith on Thursday June 03, 2010 @05:54PM (#1402727)
Thanks, I was interested in an Awk learning resource, and this looks like exactly what I would want.
Re:Awk by example, Part 1 -- by telemachos on Thursday June 03, 2010 @09:04PM (#1403172)
You might also take a look at Sed & Awk, co-authored by Daniel Robbin's father, Arnold Robbins.

http://books.google.com/books?id=m4ZzElQZxcoC&dq=sed+awk...

Re:Awk by example, Part 1 -- by silentbicycle on Thursday June 03, 2010 @11:23PM (#1403376)
_The Awk Programming Language_ is vastly better, IMHO, and half the size. Brian Kernighan co-wrote it. It's that good.

The awk chapters in Bentley's _Programming Pearls_ and _More Programming Pearls_ and Peteris Krumins's Awk One-Liners series (http://www.catonmat.net/blog/awk-one-liners-explained-part-o...) are worth a read, as is the source for awk. (nawk, at least - haven't looked at gawk).

Re:Awk by example, Part 1 -- by lidmith on Thursday June 03, 2010 @11:01PM (#1403346)
TY, I'll bookmark that as well for when I finish the other one.
Re:Awk by example, Part 1 -- by abecedarius on Friday June 04, 2010 @02:57AM (#1403692)
You might also like http://awk.info/ then.
Re:Awk by example, Part 1 -- by hillad on Thursday June 03, 2010 @08:42PM (#1403121)
$ awk -F":" '{ print "username: " $1 "\t\tuid:" $3" }' /etc/passwd awk: { print "username: " $1 "\t\tuid:" $3" } awk: ^ unterminated string

Needs to be

$ awk -F":" '{ print "username: " $1 "\t\tuid:" $3 }' /etc/passwd

Re:Awk by example, Part 1 -- by malomalo on Thursday June 03, 2010 @05:45PM (#1402694)
This is an exact copy of http://www.ibm.com/developerworks/linux/library/l-awk1.html?..., not sure who's copying who...but the article on IBM is from July 2008
Re:Awk by example, Part 1 -- by bingaman on Thursday June 03, 2010 @05:49PM (#1402710)
Funtoo is Daniel Robbins site and the article you've linked is credited to Daniel Robbins as well.

Really nice introduction to awk. I've been meaning to dig a bit deeper into it and this is straightforward and easy.

Re:Awk by example, Part 1 -- by bingaman on Thursday June 03, 2010 @05:56PM (#1402734)
Also, from the right side of the page: "This article was originally published on IBM developerWorks."