Created
October 2, 2021 18:50
-
-
Save kun432/2e490548bd8ac404ed87467a20aa32bc to your computer and use it in GitHub Desktop.
virtualbox環境でvagrant upとかを並列で行う
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
| #!/bin/bash | |
| parallel=3 | |
| subcmds="$@" | |
| vagrant status --machine-readable | \ | |
| perl -wnlaF"," -e 'print $F[1] if $F[2] =~ /metadata/;' | \ | |
| xargs -P${parallel} -I {} vagrant $subcmds {} | |
Author
kun432
commented
Oct 2, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment