StackOverflow 文档 grep 教程 grep 入门 仅打印行的匹配部分 仅打印行的匹配部分 Created: November-22, 2018 echo "Prints only the matching part of the lines" | grep -o "matching" # prints matching Grep 上下文控制