Hi.
This might help, at least in the early stages of developing an
awk script:
Code:
#!/usr/bin/env sh
# @(#) a1 Demonstrate one debugging feature in [g]awk.
set -o nounset
echo
## Use local command version for the commands in this demonstration.
echo "(Versions displayed with local utility \"version\")"
version >/dev/null 2>&1 && version bash awk
echo
awk --lint '
b == 1 { print " Found case for value of b is 1." }
' data1
exit 0