I would like to run a for loop for a set of variables which I incorrectly denote as {A,B}. Following that my script looks like:
#!/bin/sh
for {A,B} in {1,2} {3,4} {5,6} {7,8}
do
echo A=$A B=$B
C=$(($A+$B))
echo Sum,C = $C
done
How can I correct it?