- AWK Compatibility List – http://www.shelldorado.com/articles/awkcompat.html
- comp.lang.awk FAQ – http://www.faqs.org/faqs/computer-lang/awk/faq/
- Bruce Barnett’s Awk tutorial at “The Grymoire – home for UNIX wizards” – http://www.grymoire.com/Unix/Awk.html
- The GNU Awk User’s Guide – http://www.gnu.org/s/gawk/manual/gawk.html
- AWK info at WikiPedia – http://en.wikipedia.org/wiki/AWK
Passing shell variables to AWK
Thing that works well for me:
awk '{print "'"$VARIABLE"'"}' 1 > 2 |
- “Four Ways to Pass Shell Variables in AWK” by Chi Hung Chan – http://chihungchan.blogspot.com/2009/03/four-ways-to-pass-shell-variables-in.html
- Setting a BASH environment variable directly in AWK (in an AWK one-liner) – http://stackoverflow.com/questions/3107727/setting-a-bash-environment-variable-directly-in-awk-in-an-awk-one-liner
- Invoking AWK programs – http://www.shelldorado.com/goodcoding/awkinvoke.html
Related here: Scripting languages – https://eikonal.wordpress.com/2010/06/15/awk-sed/ | Unix tricks – https://eikonal.wordpress.com/2011/02/15/unix-tricks/ | SED tricks – https://eikonal.wordpress.com/2010/10/05/sed-tricks/ | Memory of things disappearing > nmap stuff > getports.awk – https://eikonal.wordpress.com/2010/06/23/memory-of-things-disappearing-nmap-stuff-getports-awk/