🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #143

Better way to find out the number of lines in a file

#143
From: Brett Schultz
Date: Mon, 27 Jul 1992 19:57
11 lines
658 bytes
This is kind of similar to the how many files in a directory question, but
is there a trick to find the number of lines in a file?

Thanks

Brett

PS

The files are big so I don't really want to do a gets loop with a counter
unless I have to.
Technical Details
Message-ID: <1992Jul27.195754.26812@tin.monsanto.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!wupost!monsanto.com!skws02!bcschu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!wupost!monsanto.com!skws02!bcschu
From: bcschu@skws02.monsanto.com (Brett Schultz)
Newsgroups: comp.unix.programmer
Subject: Better way to find out the number of lines in a file
Message-ID: <1992Jul27.195754.26812@tin.monsanto.com>
Date: 27 Jul 92 19:57:54 GMT
Sender: news@tin.monsanto.com (USENET News System)
Organization: Monsanto Company
Lines: 11