List executable files found in PATH

Many uses for this!

Say you install a large set of updates, so want to cross-check the old
list to the new one, in order to find out which new executables were
installed.

Or, perhaps less obscure, you might this list, without the `-printf`
part, to check their permission and ownership settings.
pull/81/head
terminalforlife 5 years ago
parent a7e9bd13e1
commit cddd2c0e11

@ -56,3 +56,6 @@ find . -type f -iname '*.png' -exec bash -c 'mv "$0" "${0%.*}.jpg"' {} \;
# Use logic and grouping to delete extension-specific files.
find \( -iname "*.jpg" -or -iname "*.sfv" -or -iname "*.xspf" \) -type f -delete
# List all executable files, by basename, found within PATH.
find ${PATH//:/ } -type f -executable -printf "%P\n"

Loading…
Cancel
Save