do a little more work in awk

Can drop a few operations from the pipeline.