I've been reading through StackExchange posts on scripting and none of the things that I have tried are working as I would expect.
Also this is my 1st shell script.
# Script File Begin
echo "Enter yes | no"
read uInput
if ["$uInput" != "n"]; then
echo "Yes"
fi
The issue is when I run this no matter how I try the if
condition I keep getting line 5: n: command not found
I have tried different iterations such as
[["$uInput" != "n*"]]
[["$uInput" != n*]]
[[$uInput != n*]]
["$uInput" != "n*"]
["$uInput" != n*]
[$uInput != "n*"]
[$uInput != n*]
But they all tell me the same thing line 5: n: command not found.
What am I missing?