summaryrefslogtreecommitdiff
path: root/2026/1.sh
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2026-12-01 22:51:13 +0100
committerTom Smeding <tom@tomsmeding.com>2026-12-01 22:51:13 +0100
commit3fe3a28ba38ba1fba2f0a7236e078fa679ab99fd (patch)
tree3a235440bb61710a398130a0760ba12c3768ad6a /2026/1.sh
parent2dad8cf5d59e07637ad45c4200966816b76dcd67 (diff)
Diffstat (limited to '2026/1.sh')
-rwxr-xr-x2026/1.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/2026/1.sh b/2026/1.sh
new file mode 100755
index 0000000..8434e7c
--- /dev/null
+++ b/2026/1.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+input=$(sort -n | uniq -c | sort -n)
+tac <<<"$input" | head -3 | awk '{print $2}' | xargs | tr \ \* | bc
+head -3 <<<"$input" | awk '{print $2}' | xargs | tr \ \* | bc