Awk by example, Part 1 --
funtoo.org
Awk by example, Part 1 --
1–10 of 11 posts
Re: Awk by example, Part 1 --
#2Re: Awk by example, Part 1 --
#3This 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
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 --
#4Re: Awk by example, Part 1 --
#5This 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 --
#6Needs to be
$ awk -F":" '{ print "username: " $1 "\t\tuid:" $3 }' /etc/passwd
Re: Awk by example, Part 1 --
#7Thanks, I was interested in an Awk learning resource, and this looks like exactly what I would want.
Re: Awk by example, Part 1 --
#8Re: Awk by example, Part 1 --
#9Thanks, I was interested in an Awk learning resource, and this looks like exactly what I would want.
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 --
#10Thanks, I was interested in an Awk learning resource, and this looks like exactly what I would want.
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...
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).