bug-datamash
[Top][All Lists]
Advanced

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

[Bug-datamash] multiple rows with max value for a field


From: vmskdl .
Subject: [Bug-datamash] multiple rows with max value for a field
Date: Wed, 23 Oct 2019 09:29:55 -0400

Hello,
Is there a way to make datamash return all of the rows that have a max value for a specific column? 
For example, say I have a table like this one: 
a 10
b 8
c 10
d 6
e 4

And I run datamash as follows: 
datamash --sort --full max 2

which returns: 
a 10 10

What I would like to see instead is: 
a 10 10
c 10 10

Thanks,
Vamsi. 

reply via email to

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