老玉米:
unix shell Q: How to filter a special line and a number of lines below it.
[阅读: 744] 2006-03-07 09:51:13
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"