From owner-freebsd-isp Wed Feb 19 09:59:25 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA07160 for isp-outgoing; Wed, 19 Feb 1997 09:59:25 -0800 (PST) Received: from magrathea.chance.ru (root@magrathea.chance.ru [194.58.86.1]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA07123 for ; Wed, 19 Feb 1997 09:59:16 -0800 (PST) Received: (from caseq@localhost) by magrathea.chance.ru (8.6.12/8.6.12) id UAA12437; Wed, 19 Feb 1997 20:58:26 +0300 From: Andrew Kosyakov Message-Id: <199702191758.UAA12437@magrathea.chance.ru> Subject: Re: Script to send mail to all users? To: mnewell@newell.arlington.va.us (Mike Newell) Date: Wed, 19 Feb 1997 20:58:26 +0300 (MSK) Cc: chris@absinthe.i3inc.com, isp@freebsd.org In-Reply-To: from "Mike Newell" at Feb 19, 97 12:13:02 pm Organization: Chance Publishing House X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Quoting Mike Newell: > It's actually a pretty trivial script; you just read each line, parse out > the first element (I used awk for that), and use Mail(1) to send the > message. Here's stupid one-line solution: mail `cut -f 1 -d : /etc/passwd`