Last active
August 25, 2015 23:07
-
-
Save wrossmann/97b428533fac46ddc6e4 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
Script: | |
ARGS_COMMAND='find logs -type f ! -size 0 -exec grep -l "Broken pipe" {} \;' | |
parallel -j $MAXJOBS -i bash -c $EXEC_COMMAND -- $($ARGS_COMMAND) | |
Bash -x output: | |
++ find logs -type f '!' -size 0 -exec grep -l '"Broken' 'pipe"' '{}' '\;' | |
find: missing argument to `-exec' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment