摘要: shell脚本参数中有空格 在shell脚本中如果有空格的处理如下: sh test.sh "hello word" echo $1 得到的是hello,而不是hello word. 正确的写法如下: vi test.sh 测试: 输出: hello word ni hao a how are yo 阅读全文
posted @ 2017-03-14 13:12 丹江湖畔养蜂子赵大爹 阅读(2971) 评论(0) 推荐(0) 编辑