I am trying to make sh script which uses 'sed' to make bubblesort algorithm
I am strugling, how to make for loop
for n in $1 do echo $n done
How can I change body of the for loop to make just
n-1 cycles? I tried this
$1-1 but it doesn't work. It will print part of the string and - 1.