title: grep match only lines in a specified range
body: <p>Is it possible to use grep to match only lines with numbers in a pre-specified range?
  For instance I want to list all lines with numbers in the range <code>[1024, 2048]</code> of a log that contain the word 'error'. </p>
  
  <p>I would like to keep the '-n' functionality i.e. have the number of the matched line in the file.</p>