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 + } + } +}