摘要: 转自:http://www.360doc.com/content/13/0513/20/9437165_285204629.shtml ${parameter} 取parameter的值 ${parameter:-word} 如果parameter为空,则用word的值做parameter的缺省值 ${parameter:=word} 在2的基础上,把word的值赋给pa... 阅读全文
posted @ 2016-12-23 15:03 dorothychai 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 转自:http://smilejay.com/2011/12/bash_ifs/ 在bash中IFS是内部的域分隔符,manual中对其的叙述如下: IFS The Internal Field Separator that is used for word splitting after expansion and to split lines into words with the r... 阅读全文
posted @ 2016-12-23 14:52 dorothychai 阅读(6730) 评论(0) 推荐(0) 编辑