Reading multiple parameters in for loop in shell
<p>I want to read partition and replicationfactor as parameter in my for loop  how can i do that? Instead of 2 and 3 i want to read from rf and partition  the corresponding values  for raw good and bad.</p>

<pre><code>topics=(raw good bad)
rf=(4 6 8)
partition=(2 3 4)
for topic in ${topics[*]}
do
  bin/kafka-topics.sh --create --replication-factor 2 --partitions 3 --topic "$topic" --zookeeper $zk_hosts
done
</code></pre>