mgrep多行 grep 工具
mgrep 是一個執(zhí)行多行 grep 的擴展工具。其設計目的并不是為了替換 grep,而是兼容 grep ,實現(xiàn)對 grep 的擴展。
示例用法:
# Search for lines with "Romeo" in the file shakespeare-romeo_and_juliet: mgrep Romeo shakespeare-romeo_and_juliet # Count the number of include directives in each .cc file: mgrep -c '#include' *.cc # List those files that have "John Doe" in them, regardless of capitalization: mgrep -il 'John Doe' *.cc
評論
圖片
表情
