Xref: utzoo comp.unix.questions:31233 comp.unix.shell:2154 comp.unix.wizards:25548 comp.unix.programmer:1803 comp.mail.elm:4106 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!motcsd!starnet!moe From: moe@starnet.uucp (Moe S.) Newsgroups: comp.unix.questions,comp.unix.shell,comp.unix.wizards,comp.unix.programmer,comp.mail.elm Subject: UNIX SHELL PROG. & ELM QUESTIONS Message-ID: <1991May10.064610.25802@starnet.uucp> Date: 10 May 91 06:46:10 GMT Organization: Starnet-Public Access UNIX-Los Altos,CA 415-949-3133, login:info Lines: 26 I appreciate any help on these questions: 1. If I have a large (500+ messages) in a mailbox-format file, what is the best way to mail a file to everyone of the 500+? (using elm or any other way). 2. If I have a file containing some names and email addresses such as this: xyz@jkjk.jkyu.reyui (John J. Doe) Mark L. Lost Joe!!! jjj@jhdf.434r.er (Such a file can be obtained by doing grep "^From:" mailbox_file ) How can I re-organize the file (using awk, sed, etc...) so that the email addresses are the first field in every line in the file? Note that all addresses will contain at least one of the two characters: "@" or "!". Let's say the file is too big to make manual editing practical. Thanks again. Moe