> 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}'
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
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.
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.