From 0926d058f554380bcf8290ff4f93d324678b076c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 8 Jul 2025 15:26:34 +0200 Subject: [PATCH] binaries/dedupe --- sh/code.awk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sh/code.awk b/sh/code.awk index 201db71..4ef8e69 100644 --- a/sh/code.awk +++ b/sh/code.awk @@ -55,7 +55,7 @@ BEGIN { } } else if (action == "binaries") { if (match($0, RE_BINARY, m)) { - print m[1] + binaries[m[1]] = "" } } else if (action == "commands") { if (match($0, RE_COMMAND, m)) { @@ -148,3 +148,11 @@ BEGIN { } } } + +END { + if (action == "binaries") { + for (binary in binaries) { + print binary + } + } +}