|
From: | Jake VanEck |
Subject: | Re: datamash performance question |
Date: | Fri, 25 Jun 2021 16:41:02 -0400 |
I'd be curious to see ways to make datamash work faster here, but if all
you're doing is computing sums, you can use awk instead of datamash:
mawk '{s[$2] += $1;} END { for (k in s) {print k, s[k]; } }'
Then you can probably also get rid of your sort and sed calls.
[Prev in Thread] | Current Thread | [Next in Thread] |