mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
15 lines
523 B
Bash
15 lines
523 B
Bash
#!/bin/bash
|
|
|
|
echo '### Test basic --arg-sep'
|
|
parallel -k echo ::: a b
|
|
echo '### Run commands using --arg-sep'
|
|
parallel -kv ::: 'echo a' 'echo b'
|
|
echo '### Change --arg-sep'
|
|
parallel --arg-sep ::: -kv ::: 'echo a' 'echo b'
|
|
parallel --arg-sep .--- -kv .--- 'echo a' 'echo b'
|
|
echo '### Test stdin goes to first command only'
|
|
echo via first cat |parallel -kv cat ::: - -
|
|
echo via cat |parallel --arg-sep .--- -kv .--- 'cat' 'echo b'
|
|
echo via cat |parallel -kv ::: 'cat' 'echo b'
|
|
echo no output |parallel -kv ::: 'echo a' 'cat'
|