Skip to content

Instantly share code, notes, and snippets.

@mcescalante
Last active December 25, 2015 02:39
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 mcescalante/6904470 to your computer and use it in GitHub Desktop.
Save mcescalante/6904470 to your computer and use it in GitHub Desktop.
Find files modified since x days ago, tar them
#tar files in current directory modified since 1 day ago
find . -mtime -1 -exec tar --no-recursion -czf name.tgz {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment