Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 1995 15:14:51 +0200
From:      Wolfram Schneider <wosch@cs.tu-berlin.de>
To:        "Garrett A. Wollman" <wollman@lcs.mit.edu>
Cc:        current@freebsd.org
Subject:   from(1)
Message-ID:  <199509211314.PAA05392@caramba.cs.tu-berlin.de>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Garrett A. Wollman writes:
><<On Wed, 20 Sep 1995 19:37:08 +0200, Wolfram Schneider <wosch@cs.tu-berlin.de> 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@cs.tu-berlin.de>
<a href="http://hyperg.cs.tu-berlin.de/C~wosch">wosch</a>;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509211314.PAA05392>