I have a two dates in date +%Y%m%d%H%M%S format. How to find the difference and how to check whether the difference is more than 4 hours?This is how i have triedecho $(( ( $(date +%Y%m%d%H%M%S) - $(date +%Y%m%d%H%M%S -d 1970-01-01 + $(stat -c '%Z' filename ) secs))))date command returns thisSun Sep  6 10:35:19 CDT 2015
Finding difference in dates which is in format %Y%m%d%H%M%S
linux;shell script;date