for file in $(find . -mmin -1 -print); do echo "${file} - $(stat -c %y ${file})"; doneif you don't care about the modification time, this will output just the file names:
find . -mmin -1 -printwill suffice.
if you're interested in the files that where modified in the last 24 hours you just have to replace -mmin with -mtime:
find . -mtime -1 -printAnd if you don't care about files under sub-folders:
ls -lhtrmight be faster
No comments:
Post a Comment