コマンドオプションサンプル:grep --max-count
コマンドサンプルを検索した結果です。
grep --max-count 20 --before-context 5 'Started'
Cool Unix Terminal-fu :
http://romaimperator.com/2016/01/26/cool-unix-terminal-fu
grep --max-count 5 tmp.html
grep/egrep/fgrepコマンドのすべて【具体例編】 - Qiita :
http://qiita.com/kenju/items/a73a3610011391eee252