The Code Below showing "Command not found " at line 12.I have tried many way but it did not fix.What is the problem?Can anyone explain?
#!bin/bash
echo "How many number do you want to input?"
read numbers
echo "Give your input seperated by enter"
array=()
for (( i = 0 ; i < $numbers ; i=$i+1 ));
do
read num;
array+=($num);
done
for (( j = 0 ; j < $numbers-1 ; j=$j+1 ));
do
if ["${array[$j]}" -gt "${array[$j+1]}"];
then
tempo=${array[$j]};
array[$j]=${array[$j+1]};
array[$j+1]=$temp;
fi
done
for (( i = 0 ; i < $numbers ; i=$i+1 ));
do
echo ${array[$i]};
done