title: Sed extract section of log file with timestamp boundaries
body: <p>I have a selection of log files containing amongst other things time stamps.</p>
  
  <p>Fwiw format is <code>YYYY-MM-DD HH:MM:SS.sss</code> (ie milliseconds granularity but no further)</p>
  
  <p>Happily for me I can reasonably expect these timestamps to be both sorted chronologically AND unique.</p>
  
  <p>However I am running into issues extracting the portion of the log file falling between two timestamps.</p>
  
  <p>first timestamp in my file is <code>21:27:57.545</code>
  last timestamp in my file is <code>21:28:45.631</code></p>
  
  <p>Syntax I am using is e.g. </p>
  
  <pre><code>sed -n '/21:28:10*/,/21:28:22*/p'
  </code></pre>
  
  <p>This is yielding some odd results (I am sure user error)</p>
  
  <p>start time of <code>21:28:10*</code> gives me timestamps starting at <code>21:28:10.043</code> (so far so good as prior was <code>21:28:09.484</code> so it is starting in the right place)</p>
  
  <p>however start time of <code>21:28:09*</code> gives me timestamps starting at <code>21:28:00.003</code></p>
  
  <p>end time equally odd. end time of <code>21:28:22*</code> yields timestamps up to and including <code>21:28:20.050</code>, however I know for a fact that there timestamps after that as follows;</p>
  
  <pre><code>2017-05-10 21:28:21.278, 901
  2017-05-10 21:28:21.303, 901
  2017-05-10 21:28:21.304, 901
  2017-05-10 21:28:21.483, 901
  2017-05-10 21:28:22.448, 901
  </code></pre>
  
  <p>Therefore I am wondering if this is something to do with how sed interprets the strings - is it as text? Is there a one liner way to do what I am trying to do? Ideally I would be able to specify the start and end timestamps down to the same granularity as the actual data (ie in this case milliseconds)</p>
  
  <p>TIA</p>