Last active
May 23, 2024 06:20
-
-
Save arifwn/41242288ae616ed62b6740219b99ec94 to your computer and use it in GitHub Desktop.
find recently updated files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /path/to/directory -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head | |
find /path/to/directory -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- > .recently-modified-files.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment