I am trying to run simple script named test.sh which echo the numbers in ascending manner. But somehow it shows error.
#!/bin/bash
clear
a= 0
while [ $a <= 5 ];
do
echo $a
a=$(( a+1 ))
done
Error:
./test.sh: line 4: 0: command not found
./test.sh: line 6: =: No such file or directory
for n in {1..5}; do echo "$n"; done