Last active
October 25, 2017 10:55
-
-
Save w4tson/ad623e91c03de4d57a638a8bee6346c0 to your computer and use it in GitHub Desktop.
This file contains 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 all files in the last 45 mins, print them null separated and from that create an new tgz using standard-in as a file | |
# | |
find . -cmin -45 -type f -print0 | tar -cvzf ../../foo.tgz --null -T - | |
# | |
# Same as above however first searches for .nexus|.meta dir and prunes. | |
# | |
find . -not \( -name \.nexus -prune \) -not \( -name \.meta -prune \) -not \( -name central-m1 -prune \) -cmin -45 -type f -print0 | tar -cvzf ../../foo.tgz --null -T - | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment