- 论坛徽章:
- 24
|
- gentoo ~ # sed -r '/\[ERROR\]/,/\[INFO\]/{1h;1!H};$!d;${g;s/\[INFO\][^\e]*\e//g}' file
- [ERROR] [2014-09-14 01:41:46] [ Class = com.util.Log4jLogger | Method = errorLog | Line = 164 ] | null: class java.lang.NullPointerException^M
- 类: com.neusoft.dataprocess.processor.DataProcessor; 方法: process; 所在行: 328^M
- 类: com.neusoft.dataprocess.processor.DataProcessor; 方法: run; 所在行: 63^M
- 类: java.lang.Thread; 方法: run; 所在行: 761 |
- r | Method = infoLog | Line = 106 ] | ^M
- [ERROR] [2014-09-14 01:41:46] [ Class = com.util.Log4jLogger | Method = errorLog | Line = 164 ] | null: class java.lang.NullPointerException^M
- 类: com.neusoft.dataprocess.processor.DataProcessor; 方法: process; 所在行: 328^M
- 类: com.neusoft.dataprocess.processor.DataProcessor; 方法: run; 所在行: 63^M
- 类: java.lang.Thread; 方法: run; 所在行: 761 |
- r | Method = infoLog | Line = 106 ] | ^M
复制代码 不是很满意,凑合能出结果 |
|