Hi I have a similar problem, I would like to get a number that falls within a range from a string.
ex. input: "abcd 9034 efg 1234 hi"
output: 9034
I would only want to get the number range from 9000-9999
I've tried to use
sed/grep to get what I want for hours but not able to do it, can anyone advice on this? Thanks a lot!!!