- 论坛徽章:
- 0
|
我有一个文件,格式如下:
"/export/home/chinese/example/RuleC101/NG/l.c"(10) b pgr0226 ANSI C does not allow the predefined macro "__TIME__" to be deleted.
"/export/home/chinese/example/RuleC101/NG/l.c"(10) b pgr0226 ANSI C does not allow the predefined macro "__TIME__" to be deleted.
"/export/home/chinese/example/RuleC101/NG/l.c"(10) b pgr0226 ANSI C does't allow the predefined macro "__TIME__" to be deleted.
我想让这些行中含有某个字短的行(蓝色标记的地方)只留下一行.蓝色的标记的地方只有可能是:pgr0000(四个数字),mse0000(四个数字)我想用sed或是awk实现,bash实现也可以~~~~~
还请各位看看~~ |
|