On Mon, Dec 12, 2005 at 05:00:13PM +0100, Daniel Hertrich wrote:
Is there a way to let the for loop read a file with a list of addresses (one address per line), instead of listing the addresses all in the script?
Of course.
stse@osgiliath:~> cat addresses
stse@bla1
hallo@bla3
grummel@bla5
stse@osgiliath:~> for i in `cat addresses`; do echo $i;done
stse@bla1
hallo@bla3
grummel@bla5
Replace the "echo "$i" with the mutt command.
Shade and sweet water!
Stephan
--
| Stephan Seitz E-Mail: Nur-Ab-Sal@xxxxxx |
| PGP Public Keys: http://fsing.rootsland.net/~stse/pgp.html |
Attachment:
signature.asc
Description: Digital signature