Thank you for your replies, I may of not explained it as well as I could of.
I'm wanting to grep for any number larger than 50 wrapped around spaces. So for example:
Code:
2011-10-05T10:28:53+00:00 DEBUG (7): one page SAGEPAY) order taking 60 seconds to save, Order ID: 20072
2011-10-05T10:28:53+00:00 DEBUG (7): one page SAGEPAY) order taking 90 seconds to save, Order ID: 20073
This is all working correctly using this command:
Code:
tail -f -n1000 /logfile | grep " [5-9][0-9] "
The trouble is when I want to grep for numbers that are larger then 99:
Code:
2011-10-05T10:28:53+00:00 DEBUG (7): one page SAGEPAY) order taking 198 seconds to save, Order ID: 20073
I think LesleyB isnt far off the solution. Its finding the numbers but numbers below 50.
Hope this makes sense.
Bookmarks