bug-parallel
[Top][All Lists]
Advanced

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

Re: GNU Parallel Bug Reports --recend='\0' isn't interpreted as NULL cha


From: Andreas Bernauer
Subject: Re: GNU Parallel Bug Reports --recend='\0' isn't interpreted as NULL character.
Date: Wed, 30 Apr 2014 16:43:00 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

--regexp helps a bit, but makes things slower

echo -ne "x\0y" | parallel --regexp --recstart '' --recend '\0' -k -N1
--pipe  cat -v \; echo
x^@
y

I'm not sure if this is what you intended, though.

-Andreas

On 4/30/14 11:06, Alexey Karakulov wrote:
> Hi, I can't find a way to use NULL character as record separator with
> --pipe. For --recend (and probably --recstart too) '\0' argument is read
> literally as backslash-zero.
> 
> $ echo -ne "x\0y" | ./bin/parallel --recstart '' --recend '\0' -k -N1
> --pipe  cat -v \; echo
> address@hidden
> 
> $ echo -n "x\0y" | ./bin/parallel --recstart '' --recend '\0' -k -N1
> --pipe  cat -v \; echo
> x\0
> y
> 
> 
> $ ./bin/parallel --version
> GNU parallel 20140422
> Copyright (C) 2007,2008,2009,2010,2011,2012,2013,2014 Ole Tange and Free
> Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> GNU parallel comes with no warranty.
> 
> Web site: http://www.gnu.org/software/parallel
> 
> When using programs that use GNU Parallel to process data for
> publication please cite:
> 
> O. Tange (2011): GNU Parallel - The Command-Line Power Tool, 
> ;login: The USENIX Magazine, February 2011:42-47.
> 




reply via email to

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