shell
止。。
这个作者很懒,什么都没留下…
展开
-
shell脚本编译成二进制可执行文件
编译后的 test.sh.x 文件和test.sh 在同级目录下。原创 2023-04-24 17:28:34 · 601 阅读 · 0 评论 -
shell 常用函数(持续更新)
shell 常用函数(持续更新)shell 判断字符串包含方法一方法二方法三 shell 判断字符串包含 方法一 strA="helloworld" strB="low" if [[ $strA =~ $strB ]] then echo "包含" else echo "不包含" fi 方法二 A="helloworld" B="low" if [[ $A == *$B* ]] then echo "包含" else echo "不包含" fi 方法三 strA="lon原创 2021-09-24 10:45:40 · 129 阅读 · 0 评论