[Top][All Lists]

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

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

From: Jean-Baptiste Denis
Subject: Re: -0/--null behavior with --pipe
Date: Tue, 24 Apr 2018 15:45:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

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

OK. I'm not able to make it work :

cat abc0-file | parallel --recend '\0' --pipe cat

I feel stupid.

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

Those two examples are working fine.

I think you are looking for --recend.

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

Only if I manage to make it work =)


reply via email to

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