Task: print the last word in /workspace/dir1/long.txt
Command: tac /workspace/dir1/long.txt | awk 'NF{print $NF; exit}'
Equivalent command: awk '{ for (i=1; i<=NF; i++) last=$i } END { print last }' /workspace/dir1/long.txt