I have a file that is constantly being written to/updated. I want to find the last line containing a particular word, then print the last column of that line.
The fi
To print the last column of a line just use $(NF):
awk '{print $(NF)}'