Last active
June 19, 2019 01:01
-
-
Save jamesmoriarty/002f405d3fbabbf5efbfe06730e38384 to your computer and use it in GitHub Desktop.
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/sh | |
| for arg in "job1" "job2"; do | |
| ( | |
| echo $arg | |
| ) & pids+=($!) | |
| done | |
| wait "${pids[@]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment