User Tools

Site Tools


sed:print:print_first_n_lines_of_a_file

SED - Print - Print first N lines of a file

Emulates behavior of “head”.

For example, to print first 10 lines of a file:

sed 10q

NOTE: Equivalent to:

head -n 10 -
sed/print/print_first_n_lines_of_a_file.txt · Last modified: 2020/12/22 16:08 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki