正文【shell比较字符串】IP云V管理员/2022-11-29/4 阅读 11/29提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 if [ 'AAA' = 'ABC' ]; then echo "the same" else echo "not the same" fi shell比较字符串只能用=,不能用eq! 注意,加黄底色部分空格必不可少!