User Tools

Site Tools


sed:print:print_section_of_file_based_on_line_numbers

This is an old revision of the document!


SED - Print - Print section of file based on 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_line_numbers.1597652529.txt.gz · Last modified: 2020/08/17 08:22 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki