: yet another regex question
Hi,
is there a possibility to scan a txtfile with filterchain + regex for :
pattern1
.
. <-- i want to grab only the content between the two patterns
.
.
pattern2
line1
line2
line3 (optional)
??
Problem = i may not use the tailfilter and skip=3, because t
PM
To: Ant Users List
Subject: RE: yet another regex question
Gilbert, consider using cygwin on windows. Here are the awk and perl
scipts called by bash to do this. I try it in Ant, but I am not yet so
good at it.
-
To unsubscri
Hi,
RADEMAKERS Tanguy wrote:
The power of awk and many other goodies:
http://GnuWin32.sourceforge.net/
yup, i know ;-) but @work i've got to find a solution
with ant built in features.
So there must be a solution with grouping but
i don't know the syntax.
Gilbert
---
daemon:/var/spool/lpd:/bin/bash
Perl found 2 lines
-Satya
-Original Message-
From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 1:20 PM
To: Ant Users List
Subject: RE: yet another regex question
The power of awk and many other goodies:
http://GnuWin32.sourcefo
Hi,
Nemana, Satya V wrote:
Gilbert, I wrote an awk script to do this in the past. I need to search
for it now. Clue is to add 3 lines in the body of the awk. (line-1) use
if statement and set a flag to 1 and "skip 1", if pattern1 matches with
$0 and then (line-2) reset the flag to 0 and "skip 1", i
The power of awk and many other goodies:
http://GnuWin32.sourceforge.net/
/t
>-Original Message-
>From: Gilbert Rebhan [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 14, 2004 6:30 PM
>To: Ant Users List
>Subject: Re: yet another regex question
>
>Hi,
>
Hi,
is there a possibility to scan a txtfile with filterchain + regex for :
pattern1
.
. <-- i want to grab only the content between the two patterns
.
.
pattern2
line1
line2
line3 (optional)
??
Problem = i may not use the tailfilter and skip=3, because the
lines after pattern1 are varia
To: ant_user (E-Mail)
Subject: yet another regex question
Hi,
is there a possibility to scan a txtfile with filterchain + regex for :
pattern1
.
. <-- i want to grab only the content between the two patterns
.
.
pattern2
line1
line2
line3 (optional)
??
Problem = i may not use th