Gawk: Difference between revisions

From wikinotes
Line 33: Line 33:
= Syntax =
= Syntax =
<blockquote>
<blockquote>
== math ==
<blockquote>
<source lang="awk">
var+= 1;
var=( (100/2) * 3 );
</source>
</blockquote><!-- awk math -->
= References =
= References =
{|
{|

Revision as of 01:30, 19 July 2021

AWK is a scripting language that was originally designed for manipulating tables and presenting them in human-readable formats. It is useful on the commandline, I'd prefer to use a more powerful language than awk than use it for scripting.


WARNING:

There are two main variations of the unix coreutils (Gnu/BSD), each has different parameters etc. If you are expecting to use awk across different platforms, make no assumptions.

Notes

gawk usage
gawk variables
gawk datatypes
gawk conditionals
gawk loops
gawk print
gawk matching
gawk subprocess

Syntax

References

http://www.funtoo.org/wiki/Awk_by_Example,_Part_1
http://www.math.utah.edu/docs/info/gawk_7.html