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
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/\
> 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
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
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
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]