sed delete c comments
来源:互联网 发布:淘宝食品 编辑:程序博客网 时间:2024/04/28 08:50
# oksed -e ":begin; { /\*\//! { $! { N; b begin }; }; s/\/\*.*\*\// /; };" 2.txtsed -e ":begin; { /\*\//! { $! { N; b begin }; }; s/\/\*.*\*\// /; };" 2.txt# xx line delete sed '/\/\*/{ /\*\//d; :a; N; /\*\//d; ba};s,//.*,,' 2.txt
sed 不删除最后一行
sed -e ' : begin; /_ASMLANGUAGE/! { $! { N; b begin; }; }; s/.*_ASMLANGUAGE/#define _ASMLANGUAGE/; ' context.s
sed -e': begin;/_ASMLANGUAGE/!{ $! { N; b begin; }; };s/.*_ASMLANGUAGE/#define _ASMLANGUAGE/;'context.s
删除xml注释
sed -e ':begin ;/-->/!{ $! { N; b begin; }};s/<!--.*-->/ /;'acpi.xmlsed -e ' :begin ; /-->/! { $! { N; b begin; } }; s/<!--.*-->/ /; ' acpi.xml
0 0
- sed delete c comments
- Foj 1604 Delete the comments
- Comments
- Comments
- sed c
- [R and Matlab] Add or delete multi-line comments
- C ++ delete 和delete[]
- {c++}delete与delete[]
- C Reference Manual Reading Notes: 004 Comments
- [C++] 关于delete和delete[]
- C++delete和delete[]区别
- 【C++】new delete & new[] delete[]
- how to handle the c string and comments in flex
- EXT2 file system dir.c with my comments
- EXT2 file system namei.c with my comments
- EXT2 file system file.c with my comments
- EXT2 file system super.c with my comments
- EXT2 file system ioctl.c with my comments
- Java - IO - 转换流 - InputStreamReader - OutputStreamWriter
- SVN使用心得
- 盲孔、埋孔制造技术
- 如何减小APK文件的大小
- GCD
- sed delete c comments
- 针对picasso的图片下载
- 绿色版Mysql安装方法
- sass之基础用法
- 使用gdb调试linux内核
- POJ 1611 The Suspects
- ibatis学习(4)Spring整合
- HTML特殊字符编码对照表
- 使用vs2008调试win7 64位下activex控件