1.> 将目标文件清空后输出Example$ set -o noclobber # 防止覆盖文件$ date > whofilewhofile: file already exists$ date >| whofile$ cat whofileThu Feb 1 13:38:36 EST 1998$ set +o noclobber # clear noclobber$ date > whofile$ cat whofileThu Feb 1 14:22:17 EST 19982.>> 追加输出到目...【阅读全文】
解释1.双引号““,使包含在里边的字符串失去意义,不起作用,除了四个字符$ ` " 和\外。2.单引号 ` `,使包含在里边的字符串失去意义,不起作用。3.反斜杠 \,使紧跟在 \后面的字符正常显示,转义符。1.Example$ s=“hello” # assign a value to a variable$ print “$s” # output the value of the variablehel...【阅读全文】