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

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

代码示例1
#!/bin/bash

VAR1="Linuxize"
VAR2="Linuxize"

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