From: http://www.gnu.org/software/parallel/man.html
EXAMPLE: Using shell variables When using shell variables, you need to quote them correctly, because otherwise they can be divided into spaces.
Pay attention to the difference between:
V=("My brother 12\" records are worth <\$\$\$>"'!' Foo Bar) parallel echo ::: ${V[@]}
and
V=("My brother 12\" records are worth <\$\$\$>"'!' Foo Bar) parallel echo ::: "${V[@]}"
When using variables in an actual command containing special characters (for example, space), you can quote them using "$ VAR" or using "and -q:
V="Here are two " parallel echo "'$V'" ::: spaces parallel -q echo "$V" ::: spaces
source share