Re: # of lines in a file
| From: | Ray Hunter | Date: | Mon, 09 Dec 2002 17:10:14 +0000 |
| Subject: | Re: # of lines in a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127529@lists.php.net to get a copy of this message | ||
Might not be the most secure way, but very fast...
$lines =
cat file.txt | wc -l
That will give you the number of lines...but again not the best
method...
On Mon, 2002-12-09 at 09:58, Clivus2k1@aol.com wrote:
> Hey guys, I've been searching the manual for a way to grab the number of
> lines in a file and read a particular line from it, however I found no
> solution to my problem so I'm wondering if any of you out there could help me
> :-)
>
> - CS
--
Ray Hunter
email: bigdog@venticon.com
www: http://venticon.com