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.......
bt707Asked:
Who is Participating?
 
ahoffmannConnect With a Mentor Commented:
congratulations for your own solution ;-)

I'll refund your 500 points.

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

awk '{print $NF, $(NF-1)}'
0
 
bt707Author Commented:
Thanks, I didn't know how to close this.
0
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.