Mailing List Archive


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

Re: [tlug] using mutt in a bash script



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)



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links