Skip to content

Instantly share code, notes, and snippets.

@aplz
Last active October 24, 2018 12:15
Show Gist options
  • Save aplz/df0451b43fe1b9e397a835e9c5b5b5a0 to your computer and use it in GitHub Desktop.
Save aplz/df0451b43fe1b9e397a835e9c5b5b5a0 to your computer and use it in GitHub Desktop.
filter files in directory by creation date, copy them to a new directory preserving original sub-directory structure
find . -type f -newermt '2018/10/14' -not -newermt '2018/10/21'| cpio -pvdmB <your-directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment