Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] using mutt in a bash script



On 8/8/07, jep200404 <jep200404@example.com> wrote:
> Keith Bawden wrote:
>
> > Try this.
> >
> > for i in `cat test.adr` ;do cat invitation.txt | mutt -s "test" $i ; done
>
> I'm afraid that does each word separately, instead of a line at a time.
> Compare the output of:
>
>    for i in `cat test.adr` ;do echo "$i" ; done
>
> and
>
>    while read i; do echo "$i" ; done < <(cat test.adr)

ooops. You are correct. I'm used to working with a single value on
each line for this sort of stuff. Sorry for the misdirection...

Regards, Keith


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links