title: grep Last n Matches Across Files
body: <p>I'm using grep to extract lines across a set of files:</p>
  
  <p>grep somestring *.log</p>
  
  <p>Is it possible to limit the maximum number of matches per file to the last n matches from each file?</p>