I want to check in linux bash whether a file was created more than x time ago.
let\'s say the file is called text.txt and the time is 2 hours.
if [
The find one is good but I think you can use anotherway, especially if you need to now how many seconds is the file old
date -d "now - $( stat -c "%Y" $filename ) seconds" +%s
using GNU date