The find command search for files in a directory hierarchy and this can helping your bash script. Sometime you can find file modified after given date. The format of the find is the same also the new argument is: newermt.
Compares the timestamp of the current file with reference. The
reference argument is normally the name of a file (and one of
its timestamps is used for the comparison) but it may also be a
string describing an absolute time. X and Y are placeholders
for other letters, and these letters select which time belonging
to how reference is used for the comparison.
a The access time of the file reference
B The birth time of the file reference
c The inode status change time of reference
m The modification time of the file reference
t reference is interpreted directly as a time
Let’s see one example:
<xmp>$ find $HOME/ -type f -name "*.txt" -newermt 2013-10-14 -print</xmp>
The first part is the same like any search… Read More »