ant-user mailing list archives

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

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" <>
To: "Ant Users" <>
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
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
View raw message