How can I do this kind of thing in the Bourne shell? Below, I want to have a
list of sites, each with a list of 4 parameters. Then I want to have an
outer loop of sites with inner loop of parmeters per site.
Thanks so much for any help or advice.
Will Cardwell
#!/bin/sh
# This doesn't work correctly.
# It would be nice to eliminate this separate "site=..." list too...
# site list
site="acme baker charles"
# 4 parameters for each site
acme="ac01 ac02 ac04 ac04"
baker="bk01 bk02 bk03 bk04"
charles="ch01 ch02 ch03 ch04"
#
for s in $site
do
echo "$s"
for parm in "$s"
do
echo " $parm"
done
echo "---end of site parms---"
done