How to Print the First Match and Stop With Grep Share July 19, 2022 Dm4r Technology grep is a search utility in Linux used for matching content. By default, it will print out any line that matches, which might include a lot of output. If you only care about the first match, you can limit the output to just the first line. Read This Article on How-To Geek › Source : How to Print the First Match and Stop With Grep