📌  相关文章
📜  bash 脚本:比较两个字符串 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:23.561000             🧑  作者: Mango

代码示例2
VAR1="Linuxize"
VAR2="Linuxize"

if [ "$VAR1" = "$VAR2" ]; then
    echo "Strings are equal."
else
    echo "Strings are not equal."
fi