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" <[EMAIL PROTECTED]> 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 > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >