title: Bash script compare two date variables
body: <p>I'm trying to compare a date given by a user to a date in a file, basically a text file with lots of dates and times listed. </p>
  
  <p>for example the user would enter a date such as 22/08/2007 and a time of 1:00, what i need the script to do is count how many dates in the text file are after the date given by the user.</p>
  
  <p>I’ve managed to accomplish this by converting each date in the text file to unix timestamp and then comparing the two. Is there no way of simply comparing two dates in bash?</p>
  
  <p>Thanks in advance</p>