On Thu, Jul 8, 2010 at 1:11 PM, Rich Shepard <[email protected]> wrote:
> On Thu, 8 Jul 2010, Dan Young wrote:
>
>> Where's Randal when you need him for calling out a UUOC?
>
>   Probably trying to herd cats.
>
>> While we're prettifying, how about:
>> for x in $(cat list); do mailx -s "Test Message" $x < msg2; done

I *think* you'll want to put quotes around $x (it's generally a good
idea, anyway):

for x in $(cat list); do mailx -s "Test Message" "$x" < msg2; done

to keep it from doing odd things if any of the addresses you're
mailing to have spaces (eg: '"Plug" <[email protected]>')

--Rogan

>
>   Yeah; that'll work, too. Six of one, dozen of the other.
>
> Rich
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to