Skip to content

Instantly share code, notes, and snippets.

Created October 11, 2012 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/3873317 to your computer and use it in GitHub Desktop.
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
#!/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