AWK Syntax
I am trying to learn AWK and I checked out a few tutorials and they say what you can do with it, but I just can't find out the syntax! I just don't understand it and I can't find an explanation of it anywhere!
|
See the link to Gawk in my sig. See here as well
|
Here is the introductory section from 'man awk':
Quote:
|
For awk, if you install the source and run:
./configure make pdf This will generate the book "GAWK: Effective Awk Programming". It might be available as "gawk-doc" in a separate package separately. This book is excellent. Having the source, you can cut and past the two sample database text files `BBS-List' and 'inventory-shipped' from the source gawk.texi file and save them to a file. That makes it easier to try out the examples yourself. The O'Reilly book "Sed & Awk" is very good a well. The sed info document pales by comparison to the gawk document, unfortunately. |
I keep hearing it's like C, so I decided just to try to use it like C but without ';'s on the end of commands, and I am starting to get the hang of it.
I will check out the links and recommendations tomorrow. BTW: Quote:
|
Quote:
|
I'm pretty sure I understand it now.
Anyway, I was wondering if it is possible to do search/replace in awk, like sed's 's' command? |
Quote:
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 08:34 PM. |