Tag: 表达式
shell脚本if表达式
无论什么编程语言都离不开条件判断。SHELL也不例外。大体的格式如下:if list thendo something hereelif list thendo another thing hereelsedo something else herefi 一个例子:#!/bin/shSYSTEM=` ...
无论什么编程语言都离不开条件判断。SHELL也不例外。大体的格式如下:if list thendo something hereelif list thendo another thing hereelsedo something else herefi 一个例子:#!/bin/shSYSTEM=` ...