On Wed, Jun 13, 2012 at 11:42 AM, Manuel Alvarez Fernandez
<[email protected]> wrote:
> I just trying to do something like this
>
> parallel -k -N3 echo {1} {2} {3} {4} ::: 1 2 3 4 5 6 ::: a b c d
>
> and getting this
>
> 1 2 3 a
> 4 5 6 a
> 1 2 3 b
> 4 5 6 b
> 1 2 3 c
> 4 5 6 c
> 1 2 3 d
> 4 5 6 d
>
> is it possible?
This is very close to what you want:
$ parallel -k -N3 parallel --arg-sep :-: -I {-} echo {1} {2} {3} {-}
:-: a b c d ::: 1 2 3 4 5 6
1 2 3 a
1 2 3 b
1 2 3 c
1 2 3 d
4 5 6 a
4 5 6 b
4 5 6 c
4 5 6 d
So the correct lines, but in the wrong order.
/Ole