Last active
September 28, 2017 00:41
-
-
Save doug-rosser/765e85bdac15936162067ec11a1222ac 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
drosser@drosser:~/MacBook/temp$ cat pe_acceptance_tests_drosser/get_compiles.sh | |
#!/usr/bin/env bash | |
# NOTE: you may need to change "Compiled catalog" to "Compiled static catalog" | |
# Usage example: ./get_compiles 2017-09-27 05 06 07 08 | |
DATE="$1" | |
shift | |
for x in "$@" | |
do | |
grep "Compiled catalog" /var/log/puppetlabs/puppetserver/puppetserver.log | grep "^$DATE $x:" | wc -l | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment