-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Dienstag, 17. Oktober 2006 14:41 schrieb Bob McConnell: > Has anyone written a decent script to extract, sort and unique the > users' email addresses. Occasionally I need to send a notice to all > registered users on our company wiki, but even with only 10% of the > employees registered, building that list takes more time than I can > spare. I need something that will build a comma separated list I can > paste into lookOut. cd ~www/dokuwiki/conf/ awk -F':' '$4~/@/ { print "\""$3"\" <"$4">"; }' users.auth.php This will print out all users in the form "Name as given in the users file " <email@xxxxxxxxxxx> Hope that helps. Cheers, Reinhold - -- - ------------------------------------------------------------------ Reinhold Kainhofer, Vienna University of Technology, Austria email: reinhold@xxxxxxxxxxxxx, http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFNNviTqjEwhXvPN0RApHsAKC2sRCVODyaQWoTLubsmY1bSHGUPACgwsh0 oLBkP6xoJ4tb5dmak753MFE= =RfBA -----END PGP SIGNATURE----- -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist