[ORIGINAL CREATION] tact and skill of sed
来源:互联网 发布:滴油雾化器绕丝数据 编辑:程序博客网 时间:2024/06/04 06:46
####
sed '/cryincold/ p' text // Print lines match "cryincold"
sed '/cryincold/! p' text // Print lines do NOT match "cryincold", pay attention to theexclamatory mark !
####
An & which is a special character in sed & awk is replaced by the matched substring. /& put literal &.
####
sed 110q filename // print filename the first 110 lines
sed -n '10, 20p' filename // print lines between 10 and 20
####
sed /^[[:space:]]*$/d file_name // Erase all space line.
####
sed -n 's/.*/[/(.*/)/].*//1/p' filename // get all section names between [ and ]
- [ORIGINAL CREATION] tact and skill of sed
- [ORIGINAL CREATION] tact and skill of VIM
- [ORIGINAL CREATION] undown tact and skill in C programming
- [ORIGINAL CREATION] learning make
- [ORIGINAL CREATION] BASH tips
- [ORIGINAL CREATION] learning awk
- [ORIGINAL CREATION] GCC
- INFO: Creation and Destruction of File Objects
- [ORIGINAL CREATION] unkown C++ skills
- soft skill and hard skill
- Creation of an Axis Web Service and a gSOAP client
- Effect of Switchovers, Failovers, and Control File Creation on Backups
- ECLIPSE SKILL OF OPERATION
- Some skill of disk
- Skill of vim
- creation of element failed
- Creation of element failed
- OCM_Session1_5_Tablespace Creation and Configurationnote
- 经典的SQL语句(整理)
- 关于servlet2.5中自定义标签开发的一点见解
- java方法中传值的认识
- HTML常用页面元素
- 如何识别真正的程序员
- [ORIGINAL CREATION] tact and skill of sed
- 窗体显示中form1.Show()和form1.ShowDialog()的区别
- Emacs: the Free Software IDE
- 【转载】Java语言中的参数传递
- (网络转载) 亲爱的,我们同居吧
- html网页弹出Popup的任务栏小窗口
- 我的07之旅
- 人民币小写转大写
- 人的性格分析