I want to parse information out of a linux command but am having a bit of trouble getting it to do what I want. The values I want to gather can be any digits caps or lowercase and can end in (rev [a-z0-9]) or not. If they end in this value I want to gather everything up to but not including the (rev 01). But if they dont end in this value I want to gather the full line. for instance if I had:
===========
blah blah 1101 blah (rev 03)
another value here blah
===========
I would want to capture:
blah blah 1101 blah
another value here blah
Any tips or ideas on how to do this?
===========
blah blah 1101 blah (rev 03)
another value here blah
===========
I would want to capture:
blah blah 1101 blah
another value here blah
Any tips or ideas on how to do this?