Date: Tue, 25 Jan 2000 12:17:55 +0200 From: Neil Blakey-Milner <nbm@mithrandr.moria.org> To: Dan Larsson <dl@tyfon.net> Cc: "[FreeBSD-Questions-List] (E-postl)" <freebsd-questions@freebsd.org> Subject: Re: How many rows in sh Message-ID: <20000125121755.A24489@mithrandr.moria.org> In-Reply-To: <01BF6725.F649DD30.dl@tyfon.net> References: <01BF6725.F649DD30.dl@tyfon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000125121755.A24489>