I have to write a script to verify input parameters;
say esr should be YES or NO other wise the script should print an error.
This is what i tried in my script but I get the following error
[YES != YES
./test.sh[83]: [YES: not found.
esr="YES"
if [$esr != "YES" || $esr != "NO"]; then
print " Error should specify esr options YES/NO"
else
esr =$esr
fi