User Tools

Site Tools


sed:print:print_the_last_line_of_a_file

This is an old revision of the document!


SED - Print - Print the last line of a file

Emulates “tail -1”.

sed '$!d'                    # method 1
sed -n '$p'                  # method 2
sed/print/print_the_last_line_of_a_file.1597581497.txt.gz · Last modified: 2020/08/16 12:38 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki