[Top][All Lists]

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

Re: Input pattern

From: Ole Tange
Subject: Re: Input pattern
Date: Sat, 26 Mar 2016 20:46:31 +0100

On Wed, Mar 23, 2016 at 6:07 PM, Ali Roustaei <> wrote:
> On Tue, Mar 22, 2016 at 1:47 AM, Ole Tange <> wrote:
>> On Mon, Mar 21, 2016 at 4:37 PM, Ali Roustaei <>
>> wrote:
>> > My script (say myscript) has three input parameters H, Re and Bn. Re and
>> > Bn
>> > are tied so that for each Re input there is only a specific Bn.
>> Currently this is not possible using a single command, but I have had
>> this problem, too, so I would welcome a patch that made it possible.
>> The idea being that :::+ links the following input source to the
>> previous --xapply style.
>> For your current situation this may work:
>>   parallel --xapply -I ,, --arg-sep ,,, parallel eval echo myscript {}
>> ,, ::: A B ,,, C D E ,,, F G H
> Thanks Ole. So right now it is not a built in feature. And thanks for the
> workaround solution, it does its job for me right now.

The git version now has :::+ and ::::+ They are limited in the way
that values do not wrap, instead there must be the same amount of
values. It is the way I use it most of the time, and it was not
possible for me to get the wrapping to work.

The magic happens in expand_combinations().


reply via email to

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