*BSD News Article 55064


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!swing.iinet.net.au!news.uoregon.edu!gatech2!news.mathworks.com!news.kei.com!simtel!lll-winken.llnl.gov!uwm.edu!vixen.cso.uiuc.edu!sdd.hp.com!hp-pcd!hp-cv!reuter.cse.ogi.edu!news.willamette.edu!news.orst.edu!news.uidaho.edu!usenet
From: Faried Nawaz <fn@uidaho.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: [Q] How do you mail an entire group?
Date: 14 Nov 1995 20:24:02 -0800
Organization: People's Front Against WWW
Lines: 17
Sender: nawaz921@waldrog.cs.uidaho.edu
Distribution: world
Message-ID: <imspjqmrod.fsf@waldrog.cs.uidaho.edu>
References: <andrew-1011952131170001@dslip7.cc.utas.edu.au>
Reply-To: fn@uidaho.edu
NNTP-Posting-Host: waldrog.cs.uidaho.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
In-reply-to: andrew@hobart.tased.edu.au's message of Fri, 10 Nov 1995 21:31:17
	+1100
X-Newsreader: Gnus v5.0.9

In article <andrew-1011952131170001@dslip7.cc.utas.edu.au> andrew@hobart.tased.edu.au (Andrew) writes:

$ I'm running FreeBSD2.0.5 and wondered, is it possible to mail an entire
$ group (without typing in the individuals names)?

a group, as in /etc/group?

let's say you want to mail wheel

wheel:*:0:root,fn,alecto,avenger

cat file-to-mail | mail -s "subject" \
	`grep '^wheel:' /etc/group | sed -e 's/^.*:.:.://g'`



there's probably a more elegant way to do it...