Originally Posted by shashv2
read -p "Do you want to continue ? Y/N - " opt
if ["$opt"== "N"];then
./newtest.sh: line 20: [N==: command not found
There has to be a space between [ and N. Also at the end of the expression between " and ].
if [ "$opt"== "N" ];then
The '[' bracket is the same as the test command.