From owner-freebsd-questions Tue Jan 25 2:11:19 2000 Delivered-To: freebsd-questions@freebsd.org Received: from athena.tyfon.net (athena.tyfon.net [212.37.11.70]) by hub.freebsd.org (Postfix) with ESMTP id 46645150DA for ; Tue, 25 Jan 2000 02:11:12 -0800 (PST) (envelope-from dl@tyfon.net) Received: from junglenote.com (cl013s1.tyfon.com [213.212.29.17]) by athena.tyfon.net (8.10.0.Beta12/8.10.0.Beta12) with ESMTP id e0PAB6602810 for ; Tue, 25 Jan 2000 11:11:07 +0100 (CET) Received: from enigmatic by junglenote.com with SMTP (MDaemon.v2.84.R) for ; Tue, 25 Jan 2000 11:18:54 +0100 Received: by localhost with Microsoft MAPI; Tue, 25 Jan 2000 11:18:53 +0100 Message-ID: <01BF6725.F649DD30.dl@tyfon.net> From: Dan Larsson To: "[FreeBSD-Questions-List] (E-postl)" Subject: How many rows in sh Date: Tue, 25 Jan 2000 11:18:52 +0100 Organization: Tyfon Internet Services [ http://tyfon.net ] X-Mailer: Microsoft Internet-e-post/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-MDaemon-Deliver-To: freebsd-questions@freebsd.org X-Return-Path: dl@tyfon.net Reply-To: dl@tyfon.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 Thanks in advance! /D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message