0
点赞
收藏
分享

微信扫一扫

shell脚本之用test判断字符串大小

飞空之羽 2022-06-06 阅读 81
#!/bin/bash
str1="she"
str2="he"

if test $str1 = $str2
then
echo "str1==str2"
else
echo "str1!=str2"
fi

 


举报

相关推荐

0 条评论