1,带参数的shellscript #this is program build 5.11 to test shell script ############ cxz ####### 5.11 ############ echo "you have given $0 $# argument" echo "the argument you give is \n $@" #$0表示所执行的shellscript $#表示shellscript 所带的参数总数 [ $#…
SHELL学习笔记----IF条件判断,判断条件 前言: 无论什么编程语言都离不开条件判断.SHELL也不例外. if list then do something here elif list then do another thing here else do something else here fi EX1: #!/bin/bash if [ `uname -m` == "x86_64" ]…