🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #144

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

#144
From: Tom Christiansen
Date: Mon, 27 Jul 1992 20:37
15 lines
1280 bytes
From the keyboard of bcschu@skws02.monsanto.com (Brett Schultz):
: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?
:
:The files are big so I don't really want to do a gets loop with a counter
:unless I have to.

Well, SOMEBODY has to do it!  

--tom
-- 
    Tom Christiansen      tchrist@convex.com      convex!tchrist


Emacs is a fine operating system, but I still prefer UNIX. -me
Technical Details
Message-ID: <1992Jul27.203700.5953@news.eng.convex.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!convex!convex!tchrist
References: <1992Jul27.195754.26812@tin.monsanto.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!convex!convex!tchrist
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: Better way to find out the number of lines in a file
Message-ID: <1992Jul27.203700.5953@news.eng.convex.com>
Originator: tchrist@pixel.convex.com
Sender: usenet@news.eng.convex.com (news access account)
Nntp-Posting-Host: pixel.convex.com
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: CONVEX Realtime Development, Colorado Springs, CO
References: <1992Jul27.195754.26812@tin.monsanto.com>
Date: Mon, 27 Jul 1992 20:37:00 GMT
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.
Lines: 15