全部博文(1144)
分类: LINUX
2006-09-29 07:56:10
|
awk -v p=1 '/score/{p=0}/>/{p=1}p' urfile read 置顶 |
chinaunix网友2010-06-17 10:08:23
awk '/score/,/^>/{if($1 ~ /(score|>)/)next; else print}' ufile
chinaunix网友2009-06-10 15:40:39
awk -v a=1 '{if (a==1 && /score/) {a=0; print $0}; if(/^>/) a=1; if(a==1) print $0 }' yourfile.txt