On Mon, 23 Jul 2018, Russell Senior wrote:
Russell,
Second, I think you want NF, not NR.
Yes. That is correct.
Thirdly, I think you want to just write matching rules (mawk manpage didn't
mention switch), e.g.:
NF == 38 { print stuff }
NR == 37 { print other stuff }
Sigh. Yes, specifying the pattern followed by the action is the solution.
I moved this processing from a bash script using IF - ELIF - ELSE so the
switch statement seemed to be the right choice.
Thanks for getting me back to the (g)awk solution.
Best regards,
Rich
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug