|
From: | FrithMartin |
Subject: | Re: GNU Parallel Bug Reports feature request: no orphan block |
Date: | Fri, 12 Jun 2015 02:11:28 +0000 |
Here's a better patch. From: FrithMartin
Sent: Friday, June 12, 2015 12:42 AM To: address@hidden Subject: feature request: no orphan block Hello:
first, thanks for the incredible GNU parallel!
If I split data into blocks using --pipe and --recstart, it always puts the final record into an orphan block by itself. Here is an example:
$ seq 1000 | sed 's/^/>header /' | tr ' ' '\n' | parallel -k --pipe --recstart '>' --block 5K wc 870 870 5112 854 854 5124 274 274 1644 2 2 13
The first 2 blocks are about 5K, as desired. After that, there is only about 2K left, and I would like it to all go in one block. I attach a simple patch (to GNU
parallel 20150522) that
seems to fix this.
The same issue was brought up earlier: http://lists.gnu.org/archive/html/parallel/2012-03/msg00072.html
Have a nice day, Martin Frith
|
better-patch.txt
Description: better-patch.txt
[Prev in Thread] | Current Thread | [Next in Thread] |