[Shell] string comparison

if [ 'AAA' = 'ABC' ];
then 
    echo "the same" 
else 
    echo "not the same"
fi

shell = compare strings can only be used, can not be used eq!

Note, plus yellow background essential part of space!

Guess you like

Origin www.cnblogs.com/zealousness/p/11122795.html