Skip to content

Instantly share code, notes, and snippets.

@arifwn
Last active May 23, 2024 06:20
Show Gist options
  • Save arifwn/41242288ae616ed62b6740219b99ec94 to your computer and use it in GitHub Desktop.
Save arifwn/41242288ae616ed62b6740219b99ec94 to your computer and use it in GitHub Desktop.
find recently updated files
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