grep -A -B详解

grep -A10 “colume” file 显示关键字和之后的10行 grep -B10 “colume” file 显示关键字和之前的10行 grep -10 “colume” file 显示关键行和前后各10行