Home · Latest · Trends  /  general
1

Egrep for number range

rated 1 times [  1] [ 0]  / comments: 0 / hits: 216  / 7 months ago, mon, feb 19, 2018, 15:09:36
The following code can used to grep on range of numbers in a file. Example- display numbers in the file which are in the range of 01-05
cat <filename> | egrep [0][1-5]
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: 5
Total Comments: 0
Location: Philadelphia
Following
User not following anyone yet.
vishymac snippets