Skip to content

Instantly share code, notes, and snippets.

@thebouv
Created December 30, 2019 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thebouv/1b12d0e0ab65e0638844694e980b78c9 to your computer and use it in GitHub Desktop.
Save thebouv/1b12d0e0ab65e0638844694e980b78c9 to your computer and use it in GitHub Desktop.
find files between datetimes
find -newermt "2019-12-30 15:15:00" ! -newermt "2019-12-30 16:26:00"
# and say you want to then send those files somewhere else like via cp?
find -newermt "2019-12-30 15:15:00" ! -newermt "2019-12-30 16:26:00" | xargs cp -t /path/to/destinationfolder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment