I have a text file , that I want to find some codes in it , each code consist a number of 3 digits + 7 capital letters
examples : 374ANSKJDS ; 3UKRHDPO ; 99RWLFOPE
my question how find these code by numeric range using grep or sed ?
for example I want to find codes starting from 750 to 900 ?
thanks
EDIT
now that i did it using grep thanks to all , can somebody give the command to do it using awk under windows ?
You can not compare the value of numbers using regexes. However, you can kind of work around this issue by specifying multiple patterns. For the interval you specified (750-900), you could use the following regex: