Created
October 11, 2012 15:46
-
-
Save anonymous/3873317 to your computer and use it in GitHub Desktop.
Analyze a tree of .bpel files while distributing work over all available cores
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
#!/bin/bash | |
NCPUS=$(grep -c processor /proc/cpuinfo) | |
find -type f -name "*.bpel" -print0 | \ | |
xargs -P "$NCPUS" -n 1 -I{} -0 \ | |
sh -c 'mubpel analyze "$1" > "$1.mutations.txt"' -- {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment