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?
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" ]]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With