gawk will return the whole log entry:
gawk "BEGIN{RS=\"####\"}/BEA-000337/{print \$0}" *.log
When using grep, the option -A4 is handy to print a few extra lines (in the example, 4) after the ling matching the pattern:
grep -A4 BEA-000337 *
Anything about Java, WebLogic, OSB, Linux etc.... this is my logbook of a navigation in the IT Technology ocean.
gawk "BEGIN{RS=\"####\"}/BEA-000337/{print \$0}" *.log
No comments:
Post a Comment