Using awk, I would like to print the last matching line of a file.
I would like only the matching line itself, not any range of lines.
I can use a command like
The command tail allows you to retreive the last n lines of an input stream. You can pipe your awk output into tail in order to trim off everything except the last line: