Hello,
I have thousand of messages (HL7), I want to use awk to extract only the ones that have a particular value in pv1.18
Each record in the file is the whole HL7 message, ie. when I print $0 I get the whole message MSH EVN PID etc. ,there is an x0d between the segments.
I would like to use a line somewhat like:
to get the records out in file out that only have a pv1.18 of X.
I do not seeem to get this working, I am sure I need to correct my regexp.
Anybody please help!
Thanks.