In a bash script I want to check if a file has been changed within the last 2 minutes.
I already found out that I can access the date of the last modification with stat file.ext -c %y
. How can I check if this date is older than two minutes?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…