Groups | Search | Server Info | Login | Register
| From | Janis Papanagnou <janis_papanagnou@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.awk |
| Subject | Re: Regular expression in awk |
| Date | 2011-04-06 23:09 +0200 |
| Organization | (posted via) M-net Telekommunikations GmbH |
| Message-ID | <inikr7$abg$1@news.m-online.net> (permalink) |
| References | <4e09d4fd-8351-45f0-8f17-b6ac0d32e19a@l18g2000yql.googlegroups.com> <ini7kr$410$1@news.m-online.net> <02482113-48f0-4690-b20c-98f906b1cd51@w7g2000yqe.googlegroups.com> |
On 06.04.2011 21:25, gio001 wrote:
> On Apr 6, 1:24 pm, Janis Papanagnou <janis_papanag...@hotmail.com>
> wrote:
>> On 06.04.2011 16:40, gio001 wrote:
>>
>>> Hello,
>>> I have thousand of messages (HL7),
>>
>> Provide sample data for a few HL7 records.
(This request has meanwhile been repeated a couple times.)
[...]
>
> I perfectly understand what you are suggesting, I tried this form in
> vain:
> awk '/PV1\|\([^|]*\|\)\{16\}\|X/ {print $0}}' infile > outfile
> yet the same exact costruct works in
> grep 'PV1\|\([^|]*\|\)\{16\}\|X' infile > outfile
You are repeating yourself, thus completely ignoring what I suggested
to clarify your task.
1. Please don't try to give your cryptic tries without explaining what you
actually want to achieve.
2. Provide sample data for a few HL7 records.
[snip of irrelevant repetitions]
> Hope I explained myself.
Nope. (See above.)
> Thanks.
Good luck.
Back to comp.lang.awk | Previous | Next — Previous in thread | Next in thread | Find similar
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