Last active
August 29, 2015 13:59
-
-
Save offlinemark/10519907 to your computer and use it in GitHub Desktop.
bash one-liner that enumerates your $PATH and finds any executables that match a certain substring (the string before the last semicolon). Useful for when you're pretty sure you have a certain command on your system but you're not exaclty sure what it's called and "man -k" or "apropos" are too verbose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for path in `echo $PATH | sed "s/:/ /g"`; do printf "\n$path\n-----\n\n" ; ls $path | grep hex; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
example output: