With a bash script, I am trying to verify that there is 15 seconds between file modifications. If I have:
-rw-rw-r-- 1 root root 2739 Jun 05 00:43 1370392620.log
-rw-rw-r-- 1 root root 2739 Jun 05 00:37 1370392623.log
-rw-rw-r-- 1 root root 2739 Jun 05 00:37 1370392626.log
-rw-rw-r-- 1 root root 2739 Jun 05 00:37 1370392630.log
I need to be able to get the seconds difference between these timestamps, and verify that they are 15 seconds apart.