Home · Latest · Trends  /  general
0

Display lines in a file after a particular line number

rated 0 times [  0] [ 0]  / comments: 0 / hits: 157  / 11 months ago, fri, feb 23, 2018, 09:48:23
The command will output the lines after a particular line number. The particular line number will also be included. Example: I have a file containing numbers 1 - 9 each in newline. awk 'BEGIN{lineno=3} {if( NR >= lineno) { print }}' gp
awk 'BEGIN{lineno=3} {if( NR >= lineno) { print }}' gp
3
4
5
6
7
8
9
More From » general
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Sponsor
Posted
vishymac

vishymac

Member since Feb 23, 2017
Total Code Snippets: 6
Total Comments: 0
Location: Philadelphia
Following
User not following anyone yet.
vishymac snippets
1 year ago, fri, jul 21, 2017
1 year ago, fri, jul 21, 2017
11 months ago, mon, feb 19, 2018
2 months ago, mon, oct 29, 2018