command line arguments fed from an array
问题 I'd like to perform a complicated bash command, using data fed from a long array as arguments. I guess it has to use a subshell in some way. For example, instead of the workable convert -size 100x100 xc:black -fill white -draw "point 1,1" -draw "point 4,8" -draw "point 87,34" etc etc etc image.png I want to employ a different logic where the arguments are given in the same command, more like convert -size 100x100 xc:black -fill white $(for i in 1,1 4,8 87,34 etc etc; -draw "point $i"; done)