G\'day,
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 i
Since you're looking to test the time of a specific file you can start by using test and comparing it to your specially created file:
test
test /path/to/file -nt /var/tmp/toto
or:
touch -t YYYYMMDDHHmm.SS /var/tmp/toto if [/path/to/file -nt /var/tmp/toto] ...