Created
July 5, 2018 19:07
-
-
Save hmsk/faca4cf551f8547e3d85bdcfe665fd44 to your computer and use it in GitHub Desktop.
Run commands in parallel and get exit code as totalized them
This file contains hidden or 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
cat > cmds << EOF | |
ls Applications | |
ls Desktop | |
ls Music | |
EOF | |
cat cmds | xargs -L1 -I BUILD -P3 bash -c BUILD | |
# -P[thread-num] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment