ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saladin Sharif <al_zaw...@yahoo.com>
Subject How to get the count of the number of lines in a file using ANT
Date Mon, 08 Oct 2007 22:20:25 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message