Search This Blog

awk: print the last two columns

cat file | awk '{print $(NF-1) $NF}'
or
awk '{print $(NF-1) $NF}' file

No comments:

Post a Comment