2019年1月23日

摘要: http://www.runoob.com/linux/linux-shell-variable.html 字符串可以用单引号,也可以用双引号,也可以不用引号。单双引号的区别跟PHP类似。 单引号字符串中的变量是无效的 双引号里可以出现转义字符 获取字符串长度:echo ${#string}截取字符 阅读全文
posted @ 2019-01-23 17:56 rosyYY 阅读(89) 评论(0) 推荐(0) 编辑
 
摘要: http://www.runoob.com/w3cnote/shell-scripting.html filename = "/home/........."错误!不能有空格 >filename=" " command >out.txt 2>err.txt: 命令中正确的输出到out.txt,错误信 阅读全文
posted @ 2019-01-23 14:51 rosyYY 阅读(146) 评论(0) 推荐(0) 编辑