User Tools

Site Tools


sed:print:print_a_specific_line_number

SED - Print - Print a specific line number

For example, to only print line 52.

sed -n '52p'                 # method 1
sed '52!d'                   # method 2
sed '52q;d'                  # method 3, efficient on large files
sed/print/print_a_specific_line_number.txt · Last modified: 2020/08/17 08:53 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki