Groups | Search | Server Info | Login | Register


Groups > comp.lang.awk > #128

Re: Regular expression in awk

From Manuel Collado <m.collado@domain.invalid>
Newsgroups comp.lang.awk
Subject Re: Regular expression in awk
Date 2011-04-06 21:07 +0200
Organization Universitat de Valencia
Message-ID <inidsl$gfl$1@peque.uv.es> (permalink)
References <4e09d4fd-8351-45f0-8f17-b6ac0d32e19a@l18g2000yql.googlegroups.com> <ini7kr$410$1@news.m-online.net>

Show all headers | View raw


El 06/04/2011 19:24, Janis Papanagnou escribió:
> On 06.04.2011 16:40, gio001 wrote:
>> Hello,
>> I have thousand of messages (HL7),
>
> Provide sample data for a few HL7 records.

IIRC, HL7 defines an XML markup for health information exchange. So 
please provide sample data, so we can see if your message format is XML 
or plain text.

>
>> I want to use awk to extract only
>> the ones that have a particular value in pv1.18

If your data are XML, then it could be difficult to use plain awk to 
process them. You could better use the XML extensions of xgawk, or a 
native XML tool, like an XSLT processor.

-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado

Back to comp.lang.awk | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Regular expression in awk gio001 <gcrippa@gmail.com> - 2011-04-06 07:40 -0700
  Re: Regular expression in awk pk <pk@pk.invalid> - 2011-04-06 16:01 +0100
  Re: Regular expression in awk Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-04-06 19:24 +0200
    Re: Regular expression in awk Manuel Collado <m.collado@domain.invalid> - 2011-04-06 21:07 +0200
    Re: Regular expression in awk gio001 <gcrippa@gmail.com> - 2011-04-06 12:25 -0700
      Re: Regular expression in awk Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-04-06 23:09 +0200
        Re: Regular expression in awk gio001 <gcrippa@gmail.com> - 2011-04-06 19:59 -0700
          Re: Regular expression in awk Loki Harfagr <l0k1@thedarkdesign.free.fr.INVALID> - 2011-04-07 07:32 +0000
            Re: Regular expression in awk gio001 <gcrippa@gmail.com> - 2011-04-07 05:06 -0700
              Re: Regular expression in awk Loki Harfagr <l0k1@thedarkdesign.free.fr.INVALID> - 2011-04-07 13:34 +0000
                Re: Regular expression in awk gio001 <gcrippa@gmail.com> - 2011-04-07 08:27 -0700
                Re: Regular expression in awk Loki Harfagr <l0k1@thedarkdesign.free.fr.INVALID> - 2011-04-07 18:32 +0000
      Re: Regular expression in awk Geoff Clare <geoff@clare.See-My-Signature.invalid> - 2011-04-07 13:34 +0100
        Re: Regular expression in awk arnold@skeeve.com (Aharon Robbins) - 2011-04-07 13:31 +0000
          Re: Regular expression in awk Geoff Clare <geoff@clare.See-My-Signature.invalid> - 2011-04-08 13:18 +0100

csiph-web