home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3941 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  637 b 

  1. Path: sparky!uunet!dtix!darwin.sura.net!wupost!monsanto.com!skws02!bcschu
  2. From: bcschu@skws02.monsanto.com (Brett Schultz)
  3. Newsgroups: comp.unix.programmer
  4. Subject: Better way to find out the number of lines in a file
  5. Message-ID: <1992Jul27.195754.26812@tin.monsanto.com>
  6. Date: 27 Jul 92 19:57:54 GMT
  7. Sender: news@tin.monsanto.com (USENET News System)
  8. Organization: Monsanto Company
  9. Lines: 11
  10.  
  11. This is kind of similar to the how many files in a directory question, but
  12. is there a trick to find the number of lines in a file?
  13.  
  14. Thanks
  15.  
  16. Brett
  17.  
  18. PS
  19.  
  20. The files are big so I don't really want to do a gets loop with a counter
  21. unless I have to.
  22.