Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

beginner in awk programming

1 view
Skip to first unread message

srinivas hn

unread,
Jul 7, 2008, 5:27:17 AM7/7/08
to
hi one and all pls let me know any documentation for awk programming

Dave B

unread,
Jul 7, 2008, 5:42:12 AM7/7/08
to
srinivas hn wrote:

> hi one and all pls let me know any documentation for awk programming

Google for "awk tutorial" to find some introductory documentation. Then:

- GNU awk manual:
http://www.gnu.org/software/gawk/manual/gawk.html

and/or

- effective awk programming, 3rd edition:
http://oreilly.com/catalog/9780596000707/


--
awk 'BEGIN{O="~"~"~";o="=="=="==";o+=+o;x=o""o;while(X++<x-o-O)c=c"%c";
X=O""O;printf c,O+x*o*o+X,(X+x)*(O+o)-o,+X*X-o-O,o+x*o*o+X,x*o*o+X-o-o,
x*(o+o)+X-O,+X*X-X+o+o,x+x+x-o,o+X+O+o+x*o*o,x+O+x*o*o,x*o*o+x+O+o+o+O,
x+o+x*o*o,x+x*o*o+O,o+x+x*o*o,o+X*o*o,X+x*o*o,x*o*o+O+x,x+x*o*o-O,X-O}'

Martin Neitzel

unread,
Jul 11, 2008, 11:54:11 AM7/11/08
to
> hi one and all pls let me know any documentation for awk programming

Get the (n)awk book written by -surprise- Aho, Kernighan, and Weiberger.
It's not as fat as many as the other books but that's just because AKW
know how to write extremely well.

http://plan9.bell-labs.com/cm/cs/awkbook/

Martin

Ed Morton

unread,
Jul 11, 2008, 12:46:29 PM7/11/08
to

Personally I never got anything out of that book but that may just have been me
and what I was working on at the time so YMMV.

When I got Effective Awk Programming (http://www.oreilly.com/catalog/awkprog3/)
is when things started making sense and I began to actually be able to use awk
so that's the one I'd have to recommend.

There's also the gawk Quick Reference Card, "awkcard.ps", in
http://ftp.gnu.org/gnu/gawk/gawk-3.1.6-ps.tar.gz.

Ed.

Cesar Rabak

unread,
Jul 11, 2008, 2:27:16 PM7/11/08
to
Ed Morton escreveu:
Hi!

Just a reminder: for systems that have gawk already installed in, the
refcard (Postscript file) may be already in some place of documentation
tree on the machine.

0 new messages