老玉米:
unix shell Q: How to filter a special line and a number of lines below it.
[阅读: 700] 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"
民主不同于专制,不需要强加于人。--- 賴斯
大道之行也,天下为公,选贤与能,讲信修睦。故人不独亲其亲,不独子其子,使老有所终,壮有所用,幼有所长,矜、寡、孤、独、废疾者,皆有所养。男有分,女有归。货恶其弃於地也,不必藏於己;力恶其不出於身也,不必为己。是故,谋闭而不兴,盗窃乱贼而不作,故外户而不闭,是谓大同。--《礼运·大同篇》