Search Results

Search: Posts Made By: dbrb2
2,511
Posted By dbrb2
Yes - that has done it - thanks! Can I ask...
Yes - that has done it - thanks!

Can I ask you eactly what it is doing though? They key changes seem to be the addition of the /g flag, and the @a= at the start of the regex...

Ben
2,511
Posted By dbrb2
A definite improvement, in that it returns only...
A definite improvement, in that it returns only one match - however, it starts the match from the start of the log file, so I end up with the first, not the last match...
2,511
Posted By dbrb2
Theres quite a lot of it... but summarizing: ...
Theres quite a lot of it... but summarizing:

<timestamp> checkStatus SUCCESS [
many lines of varied text
]

All other lines of the log will not match the above, and will be of the form:
...
2,511
Posted By dbrb2
extracting lates pattern match from multiple matches in log
Hi,

I have a large, multiline log file.

I have used pcregrep to extract all entries in that log that match a particular pattern - where that pattern spans multiple lines.

However, because...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy