This script works great and I modified it to increment by 5. My problem is I do not need the last comma at the end and I'm not sure how to remove this.for ((i=1, j=0; i <= 12 ; i++, j=j+5))do echo -n $j,done
Remove last character from an echo variable
bash;shell;command line
You rarely really need a loop in bash:echo {0..55..5} | sed 's/ /,/g'