From e4ea00cfc9fc7340c62dd920b4754787c4499de6 Mon Sep 17 00:00:00 2001 From: filip <“filip.rabiega@gmail.com”> Date: Thu, 10 Jul 2025 12:24:33 +0200 Subject: new scripts i guess --- printpath | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 printpath (limited to 'printpath') 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 -- cgit v1.2.3