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#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 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/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 equivalent to the unix command: > > > > cat file_name.txt | wc -l > > > > > > > > Can this be done using an existing ANT task? > > > > Thanks, > > > > -Saladin > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > Need a vacation? Get great deals > > > > to amazing places on Yahoo! Travel. > > > > http://travel.yahoo.com/ > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > ____________________________________________________________________________________ > Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. > http://autos.yahoo.com/index.html > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- David Weintraub [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]