當(dāng)前位置:
首頁 >
linux shell 命令记录
發(fā)布時(shí)間:2023/12/20
25
豆豆
生活随笔
收集整理的這篇文章主要介紹了
linux shell 命令记录
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
shell常用用法
shell字符串判空
test.sh
if [ -z "$1" ]; thenecho "string is empty" fi結(jié)果
sh test.sh string is empty sh test.sh test 輸出空shell字符串相等判斷
test.sh
if [ $1 = $2 ] thenecho equal elseecho not equal fi結(jié)果
sh test.sh test1 test2 not equal sh test.sh test1 test1 equal小結(jié):
持續(xù)更新
總結(jié)
以上是生活随笔為你收集整理的linux shell 命令记录的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 反相运算放大器
- 下一篇: 为什么要推销自己_推销自己:为什么? 如