Skip to content

Instantly share code, notes, and snippets.

@shakaran
Forked from anonymous/analyze-all-bpel.bash
Created October 11, 2012 15:58
Show Gist options
  • Save shakaran/3873383 to your computer and use it in GitHub Desktop.
Save shakaran/3873383 to your computer and use it in GitHub Desktop.
Analyze a tree of .bpel files while distributing work over all available cores
#!/usr/bin/env bash
find -type f -name "*.bpel" -print0 | xargs -P `grep -c processor /proc/cpuinfo` -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