Print second-to-last column/field in `awk`

awk '{print $(NF-1)}'

Should work

Leave a Comment