From 8f92680df339201437aae1956227066f89dfc065 Mon Sep 17 00:00:00 2001 From: DTB Date: Wed, 28 Feb 2024 19:42:25 -0700 Subject: [PATCH] better --- followtrail | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/followtrail b/followtrail index bc86144..9982fb7 100755 --- a/followtrail +++ b/followtrail @@ -3,5 +3,9 @@ for file in $(for path in $(printf '%s\n' "$PATH" | tr ':' "\n") do walk -n "$path" done) - do scrut -d "$file" || printf '%s\n' "$file" -done + do scrut -d "$file" \ + || printf '%s\n' "$file" +done \ + | sed 's:.*\/::' \ + | sort \ + | uniq