diff options
Diffstat (limited to 'printpath')
-rwxr-xr-x | printpath | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/printpath b/printpath new file mode 100755 index 0000000..55a3212 --- /dev/null +++ b/printpath @@ -0,0 +1,10 @@ +#!/bin/sh + +# This script is slow, but it works +IFS=: +for dir in $PATH; do + [ -d "$dir" ] || continue + for file in "$dir"/* "$dir"/.*; do + [ -f "$file" ] && [ -x "$file" ] && basename "$file" + done +done | sort -u |