I want to export from a log file.from ^START to ^END only if that record is from "BUSORG_ORID#" i want
So far I have...
awk /^START/,/^END/ *.rv >results.txt # this is able to divide the text file into the sections i want.
and i was thinking about something like...
awk /^START/,/^END/ && $2==380217 *.rv>results.txt
START: Mon Apr 24 10:08:59 2006:
Mon Apr 24 10:08:59 2006: service: before tpcall(), buffer being sent...
CLFY_SUB ViewMoneyMarkets
MESSAGE_ID 5E12F6DF-2122-4DE7-A049-2280CCCFC3E1
BUSORG_ORGID 380217
E_NUMBER 0
G_ROWCOUNT 1
END:
So far I have...
awk /^START/,/^END/ *.rv >results.txt # this is able to divide the text file into the sections i want.
and i was thinking about something like...
awk /^START/,/^END/ && $2==380217 *.rv>results.txt
START: Mon Apr 24 10:08:59 2006:
Mon Apr 24 10:08:59 2006: service: before tpcall(), buffer being sent...
CLFY_SUB ViewMoneyMarkets
MESSAGE_ID 5E12F6DF-2122-4DE7-A049-2280CCCFC3E1
BUSORG_ORGID 380217
E_NUMBER 0
G_ROWCOUNT 1
END: