title: How to extract details from report having date in yyyy-mm-dd format in a row untill next yyyy-mm-dd entry founds in unix
body: <p>I have one report(report.log) which has entries like this</p>
  
  <pre><code>Following are access details for date: 2015-02-18
  ---------------------------------------------------
  
  details1   
  details2    
  ....   
  ....
  
  Following are access details for date: 2015-02-19
  ----------------------------------------------------
  
  line1                                                                        
  line2   
  ....  
  ....
  
  Following are access details for date: 2015-02-20
  -------------------------------------------------------
  
  line1                                                                        
  line2   
  ....  
  ....
  </code></pre>
  
  <p>I want to write a script which will ask for inputting single date in yyyy-mm-dd format(output of this should be Following are access details for date : yyyy-mm-dd up to and excluding new entry line of "following are access details for date")or range like from 2014-02-09 to 2014-02-20(output of this should be Following are access details for date : 2014-02-09 up to and including second date in range 2014-02-20), that means outputting all entries starting from first date to last date in date range.</p>
  
  <p>Please also note new lines after and before Following are ... line in report </p>