On Sun, Feb 11, 2024 at 7:25 PM Ecks Hecker <kajand...@vivaldi.net> wrote: > > i recently tried to use parallel --pipe, but failed. This is what i saw: > > > parallel -V > > GNU parallel 20231122 > > > > cat source | parallel --recend $'\0' --pipe --block 800 "wc" > > 0 1 800 > > ... > > > > cat source | parallel --null --pipe --block 800 "wc" Yep. --null is another way to write --delimiter '\0'. It is different from --recend '\0'.
--delimiter is rarely used with --pipe, and --recend is always used with --pipe/--pipepart. Here is an example where -d is used with --pipe: $ seq 330000 | parallel --tag --pipe -d , wc {} ::: -l,-w,-c -l 165668 -c 101752 -w 149796 In other words: It is not a bug. Instead it is a feature of limited use. You have not provided us with the file 'source' so we do not know what you are trying to do. My guess is that you are looking for --recend '\0' perl -e 'print map { "$_\0" } 1..1000000' | parallel --recend '\0' --pipe wc If that is the case please repay by explaining what should be changed in the documentation so it would have been obvious to you. /Ole