中国开发网: 论坛: 程序员情感CBD: 贴子 292243
老玉米
unix shell Q: How to filter a special line and a number of lines below it.
for example :


"/usr/include/sys/var.h", line 190: error: identifier "__cptr64" is undefined
/cpp
"/usr/include/sys/proc.h", line 161: error: identifier "sigset64_t" is
undefined
sigset64_t p_sigcatch; /* signals being caught */
^

"/usr/include/sys/proc.h", line 162: error: identifier "sigset64_t" is
undefined
sigset64_t p_siginfo; /* keep siginfo_t for these */
^

"/usr/include/sys/proc.h", line 220: error: incomplete type is not allowed
struct trusage64 pv_ru; /* Rusage structure for exit() */
^

"/usr/include/sys/proc.h", line 287: error: identifier "uint64_t" is undefined
uint64_t pv_mempools[1]; /* memory pools */
^

"ktlccond.cpp", line 89: warning: variable "iRc" was set but never used
int iRc;
^



i just want to get bold lines with filter string "ktlccond.cpp"

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录