Answers for "grep until third match"

0

grep until third match

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
Posted by: Guest on October-24-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language