On 6/14/06, Martin Gainty <[EMAIL PROTECTED]> wrote:

Aaron Davies wrote:

> 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.

grep is your friend
grep -c '^'  FileName

Not exactly cross-platform, is it? I might as well use "wc -l". I'm
looking for something done in ant itself.
--
Aaron Davies
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to