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.
Not the actual issue here, but might help some one: I was doing awk "{print $NF}", note the wrong quotes. Should be awk '{print $NF}', so that the shell doesn't expand $NF.