sed
来源:互联网 发布:鹏业软件售后电话 编辑:程序博客网 时间:2024/03/29 05:41
sed教程
sed ':a;N;$!ba;s/\n/ /g'
read the whole input in a loop ,then replace '\n' with a space
逐个解释:
: label lable for b and t commands
a \text apend text,
n N read/append the next line of input into the pattern space
$ match the last line
$! not to do it on the last line
b label branch to label, if label is omitted ,branch to end of script
s/regexp/replacement substitute command
/g globle replacement
; combine several sed commands on one line
- sed
- Sed
- SED
- sed
- sed
- sed
- sed
- sed
- sed
- Sed
- sed
- sed
- sed
- sed
- sed
- sed
- sed
- sed
- 最老程序员创业札记:全文检索、数据挖掘、推荐引擎应用37
- 微软等公司数据结构+算法面试100题首次完整亮相
- java面试题
- 微软、谷歌、百度等公司经典面试100题[第1-60题]
- malloc&realloc(转)
- sed
- 39.VC(custom)-CTooltip简单用法
- 微软、Google等公司非常好的面试题及解答、第61-70题
- mongodb gui
- barcode
- 十七道海量数据处理面试题与Bit-map详解
- 漫谈Hadoop HDFS Balancer
- tc2.0环境下的C语言研究-关于链接
- Gentoo下emerge用法