Syntax error in conditional expression
linux, shell, while-loop
Solution
You need a space before closing test expression
while [[ $c -le $n ]]
And surround your variable with "" to avoid some painful error :
while [[ "$c" -le "$n" ]]
Problem
I try: ``` while [[ $c -le $n]] do now=$(date +"%T") echo "Tps at :- $now" @c=$c+1 done ``` I got: ``` syntax error in conditional expression syntax error near `do' ``` Can someone figure out what's wrong?