📜  grep 第一个匹配 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:13.342000             🧑  作者: Mango

代码示例3
Just combine grep with head command for filtering  only the first match as:
grep "match" | head -n 1   #Change 1 to not only match first but further matches