I have two arrays in a bash script, every array have same number of elements, I need to write 2nd array's every element for every element in the first array in a for loop
first array name: ARR_MPOINT
second array name: ARR_LVNAME
piece of the script:
for MPOINT in "${ARR_MPOINT[@]}"
do
/sbin/mkfs -t $ftype /dev/mapper/VolGroup01-${ARR_LVNAME[$COUNT]}
cp /etc/fstab /etc/fstab.org
echo "/dev/mapper/VolGroup01-${ARR_LVNAME[***what should come hear***]} $MPOINT xfs defaults 1 2" >> /etc/fstab
done