With GNU Parallel, you can avoid some quotes:
TEST=hallo2 echo "hallo" | parallel echo passed={} test=$TEST
GNU Parallel exists as a package for most distributions, and it is recommended that you use the standard package manager to install it. But if there is no package for your system, it takes literally 10 seconds to install GNU Parallel:
wget pi.dk/3 -qO - | sh -x
Watch the videos to learn more: https://www.youtube.com/playlist?list=PL284C9FF2488BC6D1
source share