DEV Community

loading...

Discussion on: Bash Command Completion - Finding all the cats in your $PATH!

Collapse
jrbrtsn profile image
John Robertson

Find all executable files in your path ending with 'cat':

find ${PATH//:/ } -type f  -executable -name '*cat'
/usr/sbin/tarcat
/usr/sbin/postcat
/usr/bin/msgcat
/usr/bin/systemd-cat
/usr/bin/pacat
/usr/bin/gencat
/usr/bin/fc-cat
/usr/bin/precat
/usr/bin/pnmcat
/usr/bin/socat
/bin/zcat
/bin/bzcat
/bin/ntfscat
/bin/cat

Forem Open with the Forem app