ScAlAn

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.

2 thoughts on “Get all files modified in last 5 days in a directory with subdirectories

  1. 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?

Leave a Reply

Your email address will not be published. Required fields are marked *