On Mon, 16 Apr 2001, Michael R. Jinks wrote:

> I think you want
>
> mail -s "weekly logs" [EMAIL PROTECTED] < /root/weekly.log
>
> ...either that, or
>
> cat /root/weekly.log | mail -s "weekly logs" [EMAIL PROTECTED]

just as a philosophical comment, the first way is of course the
preferred way.  as more than one unix book has pointed out,
whenever you see a "pipeline" of the form:

  $ cat (file) | cmd ...

you can almost always rewrite it as:

  $ cmd ... < (file)

as far as i know, there is no reason to use the pipe if your
only purpose is to "cat" a file into it.

rday



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to