I want to copy folder M0R0 to M1R0, M1R1, M1R2, etc.
echo -n "M= "
read m
echo -n "From run= "
read r1
echo -n "To run= "
read r2
for i in $(seq $r1 $r2)
do
echo "M$mR$i"
cp -rp M0R0 M$mR$i
done
However this code ignores the second variable $i and it only creates directory M1