freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

[理學(xué)]linuxshell編程-閱讀頁

2024-11-03 00:34本頁面
  

【正文】 不等于 ? 條件 [ n1 –lt n2 ]:表示小于 ? 條件 [ n1 –le n2 ]:表示小于等于 ? 條件 [ n1 –gt n2 ]:表示大于 ? 條件 [ n1 –ge n2 ]:表示大于等于 ? 舉例說明 ? X=3 ? Read y ? If [ $x –lt y]。 |分別為:加、減、乘、除、取余、與、或運算 ? 另外還有 $(())算術(shù)運算。 then – Command ? Fi ? if語句格式為: ? If [ expression ] 。 then – Command1 ? Elif [ expression2 ]。then – Command3 ? Else – Command4 ? Fi ? 例: ? Read s ? If [ $s –eq 1 ]。then – Echo “ok 2” ? Elif [ $s –eq 3 ]。then – Echo “$x is (dir)” ? Else – Echo “$x is (file)” ? Fi – Done While和 until語句 ? While是條件為循環(huán), until是條件為真退出循環(huán) ? 命令格式如下: ? While/Until [ expression ] ? Do – Command ? Done ? 例:輸出 10個數(shù) ? X=1 ? While [ $x –le 10 ] – Do ? Echo $x ? X=$(($x+1)) – Done ? X=1 ? Until [ $x –ge 10 ] – Do ? Echo $x ? X=$(($x+1)) – Done Case語句 ? 命令格式如下 ? Case ftp in ? Start) – Command。 ? Restart) – Command。 ? Esac ? 其中 *)是缺省條件執(zhí)行,即沒有匹配的條件,則執(zhí)行 *)后的語句 Case語句 ? 例: ? Echo “Please choose P,D or Q” ? Echo “P is print a file” ? Echo “D is delete a file” ? Echo “Q levaving this program” ? Read s ? Case $s in – p|P ) ? Echo “now pring a file!”。 – q|Q ) ? Echo “now leaving”。 ? esac
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1