Re: line count

2002-10-15 Thread Todd W
Folschette wrote: > hello, > is there a veriable holding the total amount of lines of a specific file ? > or do I have to count the lines in a loop? > > christophe folschette [trwww@devel_rh trwww]$ perl -e 'print($., "\n") while (<>);' < mbox 1 2 3 ... from perldoc perlvar $INPUT_L

Re: line count

2002-10-15 Thread Rob
Yes, but how horrible! Thx James. - Original Message - From: "Kipp, James" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 15, 2002 3:17 PM Subject: RE: line count > The cookbook recipe here seems to be the quickest: > $count += tr/\n/\

RE: line count

2002-10-15 Thread Kipp, James
> Cc: [EMAIL PROTECTED] > Subject: Re: line count > > > Christophe > > Jenda's quite right - you have to count them. The reason > being that the > number of lines in a file is essentially the number of line terminator > characters in it. You can't count t

Re: line count

2002-10-15 Thread Rob
quot;folschette" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 15, 2002 2:55 PM Subject: line count > hello, > is there a veriable holding the total amount of lines of a specific file ? > or do I have to count the lines in a loop? > > christ

Re: line count

2002-10-15 Thread Jenda Krynicky
From: folschette <[EMAIL PROTECTED]> > hello, > is there a veriable holding the total amount of lines of a specific > file ? or do I have to count the lines in a loop? You have to count them. Jenda=== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == When it com

line count

2002-10-15 Thread folschette
hello, is there a veriable holding the total amount of lines of a specific file ? or do I have to count the lines in a loop? christophe folschette -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]