#!/bin/bash #number to start with x=0 #number of time to add y=100 # number to stop at, 360 in this case. Awk removes floating points which cause error in bash. until [ $(echo $x | awk '{printf "%.0f",$1}') -gt 360 ]; do # add 360 / variable to the current number to make the next number with two decimal points x=$(echo "scale=2; $x + 360 / $y" | bc) #read out the current number echo $x done