bug-datamash
[Top][All Lists]
Advanced

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

Re: [Bug-datamash] Please add a "range" operation to datamash


From: Assaf Gordon
Subject: Re: [Bug-datamash] Please add a "range" operation to datamash
Date: Tue, 2 May 2017 22:10:54 -0400

Hello Kingsley,

> On May 1, 2017, at 23:28, Kingsley G. Morse Jr. <address@hidden> wrote:
> 
> First of all, thank you very much for maintaining
> datamash.
> I love adding stats to the command line.

Thank you for the kind words - much appreciated.

> Humble suggestion:
> Add a "range" option.
> 
> It would report the range of values in a column.
> 
> For example:
> 
>    $ echo -e "1\n2\n3" | datamash range 1
>    2

I like the idea.

There's already min/max, which can be used like so:

  $ seq 3 | datamash min 1 max 1 | awk '{print $2-$1}'
  2

However 'range' is much cleaner.

I'll add it soon.

regards,
 -assaf


reply via email to

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