User Tools

Site Tools


sed:print:print_section_of_file_based_on_a_range_of_line_numbers

SED - Print - Print section of file based on a range of line numbers

For printing only lines 8-12, inclusive.

sed -n '8,12p'               # method 1
sed '8,12!d'                 # method 2
sed/print/print_section_of_file_based_on_a_range_of_line_numbers.txt · Last modified: 2020/08/17 08:59 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki