I would like to execute a script within the following loop.
x=10.000; nx=3; dx=0.125; y=15.000; ny=5; dy=0.120
for i in {1..3};do
for j in {1..5};do
xi=xi+($i-1)*dx
yj=yj+($j-1)*dy
echo $xi $yj #run the script which needs the values of xi and yj for each run
done
done
desire output
10.000 15.000
10.000 15.120
10.000 15.240
10.000 15.360
10.000 15.480
10.125 15.000
10.125 15.120
10.125 15.240
10.125 15.360
10.125 15.480
10.250 15.000
10.250 15.120
10.250 15.240
10.250 15.360
10.250 15.480