User Tools

Site Tools


file:print_a_specific_line_in_a_file

Differences

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

Link to this comparison view

file:print_a_specific_line_in_a_file [2016/07/10 18:08] – created peterfile:print_a_specific_line_in_a_file [2019/11/27 21:19] (current) – removed peter
Line 1: Line 1:
-====== File - Print a specific line in a file ====== 
- 
-Print the 17th line. 
- 
-<code bash> 
-awk 'NR==17 {print;exit}' filename 
-</code> 
  
file/print_a_specific_line_in_a_file.1468174134.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki