AWK ( Print field before last)

I can print out the last field such as  awk '{ print $NF }'

how can i print out the last field and the Next to last field.......
Who is Participating?
ahoffmannConnect With a Mentor Commented:
congratulations for your own solution ;-)

I'll refund your 500 points.

{{ ahoffmann EE Page Editor }}
bt707Author Commented:
looks like i got it,

awk '{print $NF, $(NF-1)}'
bt707Author Commented:
Thanks, I didn't know how to close this.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.