title: Determining age of a file in shell script
body: <p>G'day,</p>
  
  <p>I need to see if a specific file is more than 58 minutes old from a sh shell script. I'm talking straight vanilla Solaris shell with some POSIX extensions it seems.</p>
  
  <p>I've thought of doing a</p>
  
  <pre><code>touch -t YYYYMMDDHHmm.SS /var/tmp/toto
  </code></pre>
  
  <p>where the timestamp is 58 minutes ago and then doing a</p>
  
  <pre><code>find ./logs_dir \! -newer /var/tmp/toto -print
  </code></pre>
  
  <p>We need to postprocess some log files that have been retrieved from various servers using mirror. Waiting for the files to be stable is the way this team decides if the mirror is finished and hence that day's logs are now complete and ready for processing.</p>
  
  <p>Any suggestions gratefully received.</p>
  
  <p>cheers,</p>