linuxshellawkcommand-line-interface

Print the last line of a file, from the CLI


How to print just the last line of a file?


Solution

  • $ awk 'END{print}' file
    

    Originally answered by Ventero