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
Execute this on the file:
awk 'ORS=NR%3?" ":"\n"' filename
and you'll get what you're looking for.