I would like to run multiple command inside a for loop that will contain two arrays. In other words, I need to have a nested for loop that will execute the commands with the following process:
echo one
echo 8df6
echo two
echo b4c2
echo three
echo 9fad
below is some code that tried, but couldn't apply what needed.
#!/bin/bash
numbers=(one two three)
numbersid=(8df6 b4c2 9fad)
for m in "${numbers[@]}"
do
echo "${m}";
for n in "${numbersid[@]}"
do
echo "${n}" ;
done
done;
thank you.