parallel
[Top][All Lists]
Advanced

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

Re: -0/--null behavior with --pipe


From: Ole Tange
Subject: Re: -0/--null behavior with --pipe
Date: Tue, 24 Apr 2018 00:02:19 +0200

On Fri, Apr 20, 2018 at 1:51 PM, Jean-Baptiste Denis <jbdenis@pasteur.fr> wrote:

> I'm wondering if I'm missing something about -0/--null behavior with --pipe.

--recstart and --recend are for --pipe. -d (and -0) is for normal use.

You can, however, combine them:

seq 1000000 | parallel -0 -j3 --block 60k --round-robin --pipe echo
This worker is {}\;wc ::: red green blue

And thus you can also do:

printf '%s\0' red green blue > rgb.null
seq 1000000 | parallel -0 -j3 --block 60k --round-robin --pipe echo
This worker is {}\;wc :::: rgb.null

I really need a good example where using the combination would be the
obvious solution to a problem (and where you could not just use {%} or
{#}).

Maybe:

wget 
https://gist.githubusercontent.com/ole-tange/82b93939bcb99f96ca2b27e5d047dcef/raw/f2f50dd66db666b7cdf610fad89db781343cfa8c/ordinal.txt
seq 1000000 | parallel --block 10k --pipe echo This worker is the
{}\;wc :::: ordinal.txt

> What do you think ?

I think you are looking for --recend.

Help me change the documentation, so this would be more clear to you.


/Ole



reply via email to

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