parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash arrays in parallel


From: Ole Tange
Subject: Re: bash arrays in parallel
Date: Tue, 10 Jan 2012 16:06:52 +0100

On Mon, Jan 9, 2012 at 4:11 PM, Cook, Malcolm <address@hidden> wrote:

> parallel my_program ::: address@hidden

That works if x does not contain spaces. If you have special chars in
the variable and you want each element to be interpreted separately
(i.e. do not split on space) try:

  x=("My brother's 12\" records are worth <\$\$\$>"'!' 0.2 0.3)
  parallel echo ::: "address@hidden"

/Ole



reply via email to

[Prev in Thread] Current Thread [Next in Thread]