On Wed, May 4, 2011 at 9:09 PM, Ole Tange <[email protected]> wrote:
> On Wed, May 4, 2011 at 6:11 PM, Hans Schou <[email protected]> wrote:
>> On Wed, 4 May 2011, Ole Tange wrote:
>>> On Wed, May 4, 2011 at 4:21 PM, Ole Tange <[email protected]> wrote:
>>> Hans' example with wav files could then be written as:
>>>
>>> parallel oggenc -q {1} {2} {2.}_{1}.ogg ::: 1 5 10 :::: wavfiles
>>> parallel oggenc -q {1} {2} {2.}_{1}.ogg ::: 1 5 10 ::: *.wav
>>> ls *.wav | parallel oggenc -q {1} {2} {2.}_{1}.ogg ::: 1 5 10 :::: -
>>
>> Looks good. So, all these does the same:
>>
>> ls *.wav > list
>>
>> parallel echo {1} {2} ::: 1 2 3 :::: list
>> parallel echo {1} {2} ::: $(seq 3) ::: *.wav
>> parallel echo {1} {2} :::: <(seq 3) list
>> parallel -a <(seq 3) echo {1} {2} ::: *.wav
>> parallel -a <(seq 3) -a list echo {1} {2}
>> parallel -a <(seq 3) -a <(ls *.wav) echo {1} {2}
>> ls *.wav | parallel -a <(seq 3) echo {1} {2} :::: -
>
> Yes.

This is now implemented in the git version. It passes the test suite
is it is at least of beta quality.

Please test it to see if you can break it.


/Ole

Reply via email to