📅  最后修改于: 2022-03-11 14:49:43.806000             🧑  作者: Mango
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