commit fcafe43d1d41eb3cd52d5e22df8dc17a7dd0c91a parent 9c0026fe9230feda26ef434a24823fe8b7c2eabe Author: Jacob R. Edwards <jacob@jacobedwards.org> Date: Wed, 13 Mar 2024 20:01:27 -0700 Add combine script Diffstat:
A | combine | | | 20 | ++++++++++++++++++++ |
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/combine b/combine @@ -0,0 +1,20 @@ +#!/usr/bin/awk -f +# Add all the same symbols together, for example +# +# VB 1 +# VB 1 +# +# would become +# +# VB 2 + +{ + IFS = " " + OFS = IFS + amounts[$1] += $2 +} + +END { + for (amount in amounts) + print amount, amounts[amount] +}