Print the last line of a file, from the CLI

yael picture yael · Jun 20, 2010 · Viewed 84k times · Source

How to print just the last line of a file?

Answer

Joey picture Joey · Jun 20, 2010
$ cat file | awk 'END{print}'

Originally answered by Ventero