home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / admin / 4278 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  907 b 

  1. Path: sparky!uunet!munnari.oz.au!metro!quark!teslab!andrew
  2. From: andrew@teslab.lab.oz.au (Andrew Phillips)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Help Needed: How to send mail to "everybody" at once
  5. Message-ID: <4473@teslab.lab.oz.au>
  6. Date: 21 Jul 92 23:35:40 GMT
  7. References: <1992Jul17.140319.23953@sdc.com>
  8. Organization: Technology Services, Chief Secretary's Dept, Sydney
  9. Lines: 13
  10.  
  11. kenk@sdc.com (Ken Konecki) writes:
  12. : In article <1992Jul16.224234.13551@cco.caltech.edu> jafl@cco.caltech.edu (John Lindal) writes:
  13. : >Does anyone know how to send mail to everyone on a particular system
  14. : >without having to specify all the user names?
  15. : mail `awk -F: '{ print $1 }' /etc/passwd`
  16.  
  17. To just send to normal users (which is I think what was asked)
  18.  
  19. mail `awk -F: '$3>199 && $3<10000 {print $1}' /etc/passwd`
  20.  
  21. (The specific numbers may vary on some systems but on ours normal
  22. user numbers start at 200.)
  23.