Get all files modified in last 5 days in a directory with subdirectories
Task: Prepare list of files with path add created datetime;
Implementation use command in the linux or Mac OS:
find . -type f -mtime -5 -exec ls -l {} \; > last5days.txt
If you want to get list of all files modified last N days, change -mtime N parameter to yours N days.
Thanks , I have recently been looking for info approximately this topic
for ages and yours is the greatest I’ve came upon so far. But,
what in regards to the conclusion? Are you certain concerning the
source?
Hello.
Thanks for your comment.
As a conclusion – you will have a list with files which have been modified last N days.