linux
Li_huan_123
这个作者很懒,什么都没留下…
展开
-
sed
sed在首次匹配前插入: 一:sed $'0,/a/ {/a/ i c\n}' file 二:sed '/a/ {i c\n; :loop; n; b loop}' file Note: The a,i,c commands terminate on newlines, so you have to physically break the line in order to finish原创 2014-07-29 10:42:15 · 577 阅读 · 0 评论 -
Bash Script
一:数组 取最后一个元s原创 2014-07-30 10:38:16 · 533 阅读 · 0 评论