title: Extract data from log file in specified range of time
body: <p>I want to extract information from a log file using a shell script (bash) based on time range. A line in the log file looks like this:</p>
  
  <pre><code>172.16.0.3 - - [31/Mar/2002:19:30:41 +0200] "GET / HTTP/1.1" 200 123 "" "Mozilla/5.0 (compatible; Konqueror/2.2.2-2; Linux)"
  </code></pre>
  
  <p>i want to extract data specific intervals. For example I need to look only at the events which happened during the last X minutes or X days ago from the last recorded data. I'm new in shell scripting but i have tried to use grep command.</p>