Changes

Jump to navigation Jump to search
277 bytes added ,  09:05, 16 November 2018
Line 34: Line 34:  
           |  |--------> run the loop as long as there is a field number x
 
           |  |--------> run the loop as long as there is a field number x
 
           |------------> initialize x to 1</nowiki>
 
           |------------> initialize x to 1</nowiki>
 +
== Print from line x to line y ==
 +
<nowiki>I suggest the sed solution, but for the sake of completeness,
    +
awk 'NR >= 57890000 && NR <= 57890010' /path/to/file
 +
To cut out after the last line:
 +
 +
awk 'NR < 57890000 { next } { print } NR == 57890010 { exit }' /path/to/file</nowiki>
    
== Cheatsheet ==
 
== Cheatsheet ==

Navigation menu