How do I limit the number of results returned from grep?

I would like to say 10 lines max from grep.

I don’t want my computer to work hard. I want it to stop after 10 results found by grep. Is it possible?

5 Answers
5

Leave a Comment