摘要:
Bash变量 •变量=值 •引用方式为:$变量 [root@localhost Desktop]# HI="Hello,and welcome to $(hostname)." [root@localhost Desktop]# echo $HI Hello,and welcome to localhost.localdomain. [root@localhost Desktop]# ... 阅读全文
摘要:
[root@localhost test]# cat test.sh #!/bin/bash #test echo "hello, world." echo "hello, ${1}." [root@localhost test]# ./test.sh Jay hello, world. hello, Jay. [root@localhost test]# echo $SHELL... 阅读全文