Skip to content

Instantly share code, notes, and snippets.

@isaacs isaacs/for-krainbolt.sh
Last active Nov 1, 2019

Embed
What would you like to do?
#!/bin/bash
a () {
sleep 1
echo a
}
b () {
sleep 1
echo b
}
c () {
sleep 1
echo c
}
d () {
sleep 1
echo d
}
e () {
sleep 1
echo e
}
a &
wait $(jobs -p)
b & c & d &
wait $(jobs -p)
e &
wait $(jobs -p)
@isaacs

This comment has been minimized.

Copy link
Owner Author

isaacs commented Nov 1, 2019

Output:

{pause}
a
{pause}
b
c
d
{pause}
e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.