**
> * Saladin Sharif
> * e-mail: [EMAIL PROTECTED]
> * Visit homepage @ http://gaia.ecs.csus.edu/~sharifs
> **
>
>
> ----- Original Message ----
> From: Prashant Reddy <[EMAIL PR
AIL PROTECTED]
* Visit homepage @ http://gaia.ecs.csus.edu/~sharifs
**
- Original Message
From: Prashant Reddy <[EMAIL PROTECTED]>
To: Saladin Sharif <[EMAIL PROTECTED]>; Ant Users List
Sent: Tuesday, October 9, 2007 9:
On Tue, 2007-10-09 at 12:25 -0700, Saladin Sharif wrote:
> But what I am really after is being able to set a flag if the file
> contains one or more lines of text.
oh you are looking to do something like :
cat log.txt | grep "a string" | wc -l
gaia.ecs.csus.edu/~sharifs
>
**********************
>
>
> ----- Original Message ----
> From: Matt Benson <[EMAIL PROTECTED]>
> To: Ant Users List ; Saladin
> Sharif <[EMAIL PROTECTED]>
> Sent: Tuesday, October
*
>
>
> - Original Message ----
> From: Matt Benson <[EMAIL PROTECTED]>
> To: Ant Users List ; Saladin
> Sharif <[EMAIL PROTECTED]>
> Sent: Tuesday, October 9, 2007 12:48:34 PM
> Subject: Re: How to get the c
From: Matt Benson <[EMAIL PROTECTED]>
To: Ant Users List ; Saladin Sharif <[EMAIL PROTECTED]>
Sent: Tuesday, October 9, 2007 12:48:34 PM
Subject: Re: How to get the count of the number of lines in a file using ANT
--- Saladin Sharif <[EMAIL PROTECTED]> wrote:
> >Anywa
n rather than as a
task. See
http://ant.apache.org/manual/CoreTasks/condition.html
HTH,
Matt
>
>
>
>
**
> * Saladin Sharif
> * e-mail: [EMAIL PROTECTED]
> * Visit homepage @ http://gaia.ecs.csus.edu/~sharifs
>
***
*
- Original Message
From: Matt Benson <[EMAIL PROTECTED]>
To: Ant Users List
Sent: Tuesday, October 9, 2007 8:16:50 AM
Subject: Re: How to get the count of the number of lines in a file using ANT
--- Peter Reilly <[EMAIL PROTECTED]> wrote:
--- Peter Reilly <[EMAIL PROTECTED]> wrote:
> On 10/9/07, Matt Benson <[EMAIL PROTECTED]>
> wrote:
> >
> > --- Peter Reilly <[EMAIL PROTECTED]>
> wrote:
> >
> > > On 10/9/07, Matt Benson <[EMAIL PROTECTED]>
> > > wrote:
> > > > Oh, ye of little faith... Look at:
> > > >
> > > >
> > >
> >
>
http:/
On 10/9/07, Matt Benson <[EMAIL PROTECTED]> wrote:
>
> --- Peter Reilly <[EMAIL PROTECTED]> wrote:
>
> > On 10/9/07, Matt Benson <[EMAIL PROTECTED]>
> > wrote:
> > > Oh, ye of little faith... Look at:
> > >
> > >
> >
> http://ant.apache.org/manual/CoreTypes/resources.html#tokens
> > >
> > > for a h
--- Peter Reilly <[EMAIL PROTECTED]> wrote:
> On 10/9/07, Matt Benson <[EMAIL PROTECTED]>
> wrote:
> > Oh, ye of little faith... Look at:
> >
> >
>
http://ant.apache.org/manual/CoreTypes/resources.html#tokens
> >
> > for a hint...
> It is *not* good to have such things in the manual.
How not, Pe
On 10/9/07, Matt Benson <[EMAIL PROTECTED]> wrote:
> Oh, ye of little faith... Look at:
>
> http://ant.apache.org/manual/CoreTypes/resources.html#tokens
>
> for a hint...
It is *not* good to have such things in the manual.
Peter
>
> -Matt
>
> --- Prashant Reddy <[EMAIL PROTECTED]> wrote:
>
> > Ok
Ok, that looks interesting. But I seem to lack the requisite
imagination. :-)
I could not find an example that uses the resources in the ant-book
(Thanks Steve L) either.
I was thinking along the lines of
-Prashant
On Tue, 2007-10-09 at 05:55 -0700, Matt Benson wrote:
> Oh, ye
All right. You win, we believe you. Now, can you show us a coding
example. I can see how you can use tokens for grep and sed, but not
for "wc -l".
On 10/9/07, Matt Benson <[EMAIL PROTECTED]> wrote:
> Oh, ye of little faith... Look at:
>
> http://ant.apache.org/manual/CoreTypes/resources.html#token
Oh, ye of little faith... Look at:
http://ant.apache.org/manual/CoreTypes/resources.html#tokens
for a hint...
-Matt
--- Prashant Reddy <[EMAIL PROTECTED]> wrote:
> Ok, none of the named filters that exist in ANT dist
> can help achieve
> this. You might need to use the scriptfilter, and i
> am
Ok, none of the named filters that exist in ANT dist can help achieve
this. You might need to use the scriptfilter, and i am not an expert in
using scripting lang.
-Prashant
On Tue, 2007-10-09 at 11:09 +0530, Prashant Reddy wrote:
> checkout the filterchains:
>
> http://ant.apache.org/manual/Cor
checkout the filterchains:
http://ant.apache.org/manual/CoreTypes/filterchain.html
On Mon, 2007-10-08 at 15:20 -0700, Saladin Sharif wrote:
> I have a txt file and would like to get the count of the number of lines in
> that file, and then store that count into a property.
>
> I mean something
17 matches
Mail list logo