From owner-freebsd-current Thu Sep 21 06:25:01 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA05895 for current-outgoing; Thu, 21 Sep 1995 06:25:01 -0700 Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id GAA05845 for ; Thu, 21 Sep 1995 06:24:41 -0700 Received: from caramba.cs.tu-berlin.de (wosch@caramba.cs.tu-berlin.de [130.149.144.4]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id PAA22932; Thu, 21 Sep 1995 15:14:55 +0200 From: Wolfram Schneider Received: (wosch@localhost) by caramba.cs.tu-berlin.de (8.6.12/8.6.9) id PAA05392; Thu, 21 Sep 1995 15:14:51 +0200 Date: Thu, 21 Sep 1995 15:14:51 +0200 Message-Id: <199509211314.PAA05392@caramba.cs.tu-berlin.de> To: "Garrett A. Wollman" Cc: current@freebsd.org Subject: from(1) In-Reply-To: <9509201814.AA04895@halloran-eldar.lcs.mit.edu> References: <199509201737.TAA03936@caramba.cs.tu-berlin.de> <9509201814.AA04895@halloran-eldar.lcs.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-current@freebsd.org Precedence: bulk Garrett A. Wollman writes: >< said: > >> - Option '-c' print a count of matching lines > >Use wc(1). An option is better than a pipe a) in a perl script, a pipe force system to use sh -c instead exec/fork b) for aliases alias fb='from -tcs owner-freebsd-security' is simpler than [for bash] fb () { from -tcs owner-freebsd-security "$@" | wc -l } most people forget the "$@" >> - Option '-t' don't change access time > >Or, alternatively: > - Option '-t' change modification time Change modification time for *reading* a file??? >Or, for that matter: > > $ zcat hack.gz | egrep '^From ' | wc -l This is only true for the *first* mail. >And `Content-Length' is a really idiotic AT&T-ism designed by people >who didn't understand mail; I would not bloat our programs by >attempting to support it. Look at your mailbox. All freebsd mailinglists have content-length. $ egrep '^From ' *|wc -l 200 $ egrep '^content-length' *|wc -l 200 Wolfram -- Wolfram Schneider wosch