User Tools

Site Tools


sed:print:print_section_of_file_based_on_line_numbers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sed:print:print_section_of_file_based_on_line_numbers [2020/08/17 08:22] – created 192.168.1.1sed:print:print_section_of_file_based_on_line_numbers [2020/08/17 08:58] (current) – removed 192.168.1.1
Line 1: Line 1:
-====== SED - Print - Print section of file based on line numbers ====== 
- 
-For printing only lines 8-12, inclusive. 
- 
-<code bash> 
-sed -n '8,12p'               # method 1 
-sed '8,12!d'                 # method 2 
-</code> 
  
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