ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Count Lines of Text?
Date Wed, 14 Jun 2006 20:10:41 GMT
Aaron-

grep is your friend
grep -c '^'  FileName

Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Aaron Davies" <aaron.davies@gmail.com>
To: "Ant Users" <user@ant.apache.org>
Sent: Wednesday, June 14, 2006 3:42 PM
Subject: Count Lines of Text?


> Is there a simple way to count lines of text in a property/file? Not
> lines of source code or anything, just raw lines of text, like "wc
> -l". I mean, I could probably do something with line terminators, but
> I'd rather have something that knows how to count lines properly on
> multiple platforms.
> -- 
> Aaron Davies
> aaron.davies@gmail.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>
Mime
View raw message