From owner-freebsd-questions Tue Jan 25 2:18:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.sunesi.net (ns1.sunesi.net [196.15.192.194]) by hub.freebsd.org (Postfix) with ESMTP id B40CA14C10 for ; Tue, 25 Jan 2000 02:18:18 -0800 (PST) (envelope-from nbm@sunesi.net) Received: from nbm by ns1.sunesi.net with local (Exim 3.03 #1) id 12D32p-0006NS-00; Tue, 25 Jan 2000 12:17:55 +0200 Date: Tue, 25 Jan 2000 12:17:55 +0200 From: Neil Blakey-Milner To: Dan Larsson Cc: "[FreeBSD-Questions-List] (E-postl)" Subject: Re: How many rows in sh Message-ID: <20000125121755.A24489@mithrandr.moria.org> References: <01BF6725.F649DD30.dl@tyfon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <01BF6725.F649DD30.dl@tyfon.net> Organization: Rhodes University Computer Users' Society X-Operating-System: FreeBSD 3.3-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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