#!/bin/bash # A sequence up to a certain number is called and used to feed mathematical operations number=500 for i in $(seq 1 $number); do S_ARG=$(echo "$i * 15" | bc) I_ARG=$(echo "scale=2; $i / 160 " | bc) VAR3=$(printf "%03d" $i) echo $S_ARG echo $I_ARG echo $VAR3 done