Re:Pipes and Filters
by JetSpiegel on Wednesday September 17, 2014 @02:13PM
(#8331450)
grep -m "Stop reading a file after NUM matching lines", while head -10 takes the first 10 lines and searches on them. Different things.
Also, that's a Useless Use of head, since grep has the option "-m10"