User Tools

Site Tools


sed:print:print_last_n_lines_of_a_file

SED - Print - Print 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_last_n_lines_of_a_file.txt · Last modified: 2020/08/17 11:08 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki