摘要: Bash变量 •变量=值 •引用方式为:$变量 [root@localhost Desktop]# HI="Hello,and welcome to $(hostname)." [root@localhost Desktop]# echo $HI Hello,and welcome to localhost.localdomain. [root@localhost Desktop]# ... 阅读全文
posted @ 2016-06-28 23:53 skyfly0772 阅读(150) 评论(0) 推荐(0) 编辑
摘要: [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... 阅读全文
posted @ 2016-06-28 15:52 skyfly0772 阅读(156) 评论(0) 推荐(0) 编辑