How to find out if a file is older than 5 mins in a shell script# Unix - 噫吁兮,危乎高哉
w*r
1 楼
I need to write a unix shell script to remove a file if it is modified more
than 5 mins ago, it there an easy way to do it? I don't want to deal with the
string format of the datetime from "ls" listing, and the "find" command can
only find the files older than 1 day. Thanks a lot!
than 5 mins ago, it there an easy way to do it? I don't want to deal with the
string format of the datetime from "ls" listing, and the "find" command can
only find the files older than 1 day. Thanks a lot!