Last active
February 13, 2017 19:38
-
-
Save gmillerd/ba3df20849d224a530f1174eb81d9f50 to your computer and use it in GitHub Desktop.
fancy find for efficiently traversing very populated directories for recent data.
This file contains hidden or 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
| #!/bin/bash | |
| find /logs/ -maxdepth 1 -mindepth 1 -type d -print0 | \ | |
| xargs -0 -r -P4 -n1 -I% find % -maxdepth 1 -mindepth 1 -type d -print0 | \ | |
| xargs -0 -r -P4 -n1 -I% find % -maxdepth 1 -mindepth 1 -type f -name "celog_event.xml" -print0 | |
| # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment