Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime!e34b!mcdowell From: mcdowell@e34b..austin.ibm.com (Steve McDowell/50000) Newsgroups: comp.mail.misc Subject: Re: SEX! or, how do I mail to a lot of unix users? Message-ID: <2487@awdprime.UUCP> Date: 31 May 90 17:58:40 GMT References: <900531083220.30e0b91a@Csa2.LBL.Gov> Sender: news@awdprime.UUCP Reply-To: mcdowell@awdprime.austin.ibm.com.UUCP (Steve McDowell/50000) Organization: IBM AWD, Austin, TX Lines: 14 > How do I send mail to everyone on the system?? How about this: % mail `cat /etc/passwd | awd -F: '{ print $1 }'` < mailfile The awk pattern simply extracts the usernames from the passwd file. Steve McDowell (mcdowell@e34b.austin.ibm.com) VNET SC10191@AUSVM6 Contractor to IBM AIXv3 Base Kernel Development T/L 793-3883 Outside IBM: ..!cs.utexas.edu!ibmaus!auschs!e34b.austin.ibm.com!mcdowell DISCLAIMER: My statements do not necessarily reflect the position of IBM.