Date: Tue, 25 Jan 2000 07:59:11 -0700 From: Charles Randall <crandall@matchlogic.com> To: Neil Blakey-Milner <nbm@mithrandr.moria.org>, Dan Larsson <dl@tyfon.net> Cc: "[FreeBSD-Questions-List] (E-postl)" <freebsd-questions@freebsd.org> Subject: RE: How many rows in sh Message-ID: <64003B21ECCAD11185C500805F31EC0304D97813@houston.matchlogic.com>
next in thread | raw e-mail | index | archive | help
Or use grep's "-c" option. E.g., % grep -c ipopd /var/log/maillog -Charles -----Original Message----- From: Neil Blakey-Milner [mailto:nbm@mithrandr.moria.org] Sent: Tuesday, January 25, 2000 3:18 AM To: Dan Larsson Cc: [FreeBSD-Questions-List] (E-postl) Subject: Re: How many rows in sh On Tue 2000-01-25 (11:18), Dan Larsson wrote: > I use a script to filter out the number of login/logouts on pop/imap/uucp. > Is there some way of *counting* the number of lines a certain filter produces > ( 'grep ipopd /var/log/maillog' for pop3) in sh? > FYI I've RTFM sh man page Add a "| wc -l" and you're in business. Check out wc(1). Neil -- Neil Blakey-Milner nbm@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64003B21ECCAD11185C500805F31EC0304D97813>