I am having trouble printing something like 10x10 in the bash script. HEre is what I have:
#!/bin/bash
i="2"
array=(1024 2048 4096 6144)
while [ $i -lt 17 ]
do
for j in "${array[@]}"
do
:
secondpart=$((j / i))
echo "$jx$jx$j and $secondpartx$secondpart"
done
echo "\n"
i=$[$i*2]
done
The expected output is: 1024x1024x1024 and 512x512