17.13 Find Files Modified During Specific Period

20200917 Suppose you know that you have created a png file probably containing the string pakdd in the filename, some time during August and September 2020, but can’t remember where you put it.

The following find command will do a case insensitive search (-iname) for files with a newer modification time (-newermt) than the first of August and not newer (!) than the first of October, 2020. For each file that matches display the output of the ls command using a long ISO data format as specified with --time-style=``long-iso.

$ find . -iname '*pakdd*.png' -newermt 2020-08-01 ! -newermt 2020-10-01 \
  -exec ls -l --time-style=long-iso {} \;

Your donation will support ongoing development and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.