Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 1997 20:58:26 +0300 (MSK)
From:      Andrew Kosyakov <caseq@magrathea.chance.ru>
To:        mnewell@newell.arlington.va.us (Mike Newell)
Cc:        chris@absinthe.i3inc.com, isp@freebsd.org
Subject:   Re: Script to send mail to all users?
Message-ID:  <199702191758.UAA12437@magrathea.chance.ru>
In-Reply-To: <Pine.BSF.3.95.970219121210.21818L-100000@bigpuppy.newell.arlington.va.us> from "Mike Newell" at Feb 19, 97 12:13:02 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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` <message-to-send

-- 
Sincerely yours
							/&rew

***
Andrew V. Kosyakov, Chance Publishing House, System Administrator
caseq@chance.ru, 2:5030/31@Fidonet.Org, +7(812)210-8046
PGP key fingerprint: BA A8 48 20 E4 AE 9C 52  C5 5F C3 B8 1E 67 2C BF



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