Find the first line having a variable value bigger than a specific number

view full story

http://stackoverflow.com – I have a very huge text file and I want to know how can I find the first line in which the value of a variable is bigger than 1000? assuming that the variable and its value have only one space in between like this: abcd 24 (HowTos)