#!/bin/bash
x=1
while [ "$x" -lt 20 ]
do
echo "$x"
x=("$x" * 5);
done
Getting error as syntax error near unexpected token `done' and getting output as 11111111111....
#!/bin/bash
x=1
while [ "$x" -lt 20 ]
do
echo "$x"
x=("$x" * 5);
done
Getting error as syntax error near unexpected token `done' and getting output as 11111111111....
Use the right syntax for the calculation:
x=$((x*5))