if [ ‘AAA‘ = ‘ABC‘ ]; then echo "the same" else echo "not the same" fi
shell比较字符串只能用=,不能用eq!
【shell比较字符串】
原文:https://www.cnblogs.com/zealousness/p/11122795.html