IM trying to compare a unix variable (a string within it) to some string and it isn't working.
The variable will ONLY contain either "SI" (yes in spanish) or "NO", and im comparing it this way:
if [ $VAR == *"NO"* ]; then
echo "Resource Not loaded </h2>" >> $MAIL_FILE
echo "Resource Loaded sucessfully" >> $MAIL_FILE
VAR is created a few lines before:
VAR=$(/home/userName/scripts/script2.ksh | egrep 'SI|NO')
I tried also with just one "=" operator and still the same...
What im i doing wrong?