#going to append A with [ACGU] G[ACGU] C[ACGU] U[ACGU] to get all possible dimers
declare -a myArray
myArray=(A C G U)
#echo ${myArray[0]}
#creating array
i=0
for x1 in ${myArray[@]}
do
for x2 in ${myArray[@]}
do
dimer[i++]="$x1$x2"
done
done
declare -p dimer
echo ${dimer[@]} # print dimers
#echo ${#dimer[@]}
dimer_len=${#dimer[@]}
j=0
while [ $j -lt $dimer_len ]
do
echo ${dimer[j]}
# mkdir ./${dimer[j]} #create directiroy with name of dimer
# cd ./${dimer[j]} # go to created directory
((j++))
done