User Tools

Site Tools


sed:print:print_the_last_n_lines_of_a_file

This is an old revision of the document!


SED - Print - Print the last N lines of a file

Emulates “tail”.

For example, to print the last 10 lines of a file:

sed -e :a -e '$q;N;11,$D;ba'
sed/print/print_the_last_n_lines_of_a_file.1597654240.txt.gz · Last modified: 2020/08/17 08:50 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki