bug-datamash
[Top][All Lists]
Advanced

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

Re: Different delimiter for 'collapse'


From: Erik Auerswald
Subject: Re: Different delimiter for 'collapse'
Date: Sun, 14 Feb 2021 15:13:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Hi,

Another suggestion for the option name could be '--value-delimiter',
since it is used to delimit individual values in the result of
commands like "unique" and "collapse."

Thanks,
Erik

On 14.02.21 00:32, Eric Powell wrote:
That's wonderful.  I actually like --collapse-delimiter, but for what it's
worth, in Impala this would probably be called "concat".  So, maybe
concat-delimeter, which would be good because it isn't specific to
collapse, and as Erik pointed out 'unique' also should be considered for
this new handling.
Last thing I would suggest is to allow multiple characters.  Sometimes you
have an unfamiliar dataset and it is just nice to be able to set something
really distinct to be safe (e.g. "@$@")

On Sat, Feb 13, 2021 at 2:10 PM Shawn Wagner <shawnw.mobile@gmail.com>
wrote:

I actually have a patch to do this ready to commit when I find the time
and remember to work on it... but I never was happy with the long-form name
for the option I used (--collapse-delimiter). Any better suggestions?

On Sat, Feb 13, 2021 at 11:11 AM Eric Powell <powell.eric@gmail.com>
wrote:

Datamash is such a wonderful piece of software and I am so happy to have
discovered it.
One feature that I wish was available is to change the delimiter for the
collapse operation.  My data has commas in it already so I cannot
distinguish between those and the commas produced by collapse.  It would be
great if there was a command-line flag allowing the user to choose the
delimiter used by collapse.





reply via email to

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