Example:
$ eval echo "{x,y,z}\ --opt\; " x --opt; y --opt; z --opt; Assume that the 2nd list is {1,2,3} and its length is equal to the length of the 1st (initial) list.
Questions:
- How to make
bashproduce:
x --opt 1; y --opt 2; z --opt 3; - How to make
bashproduce (i.e. to refer the elements from the{x,y,z}list):
x --opt x; y --opt y; z --opt z; One-liners are preferred.