Created
August 10, 2012 21:41
-
-
Save pjones/3318285 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
whatisthere () { | |
for dir in `echo $PATH | sed 's/:/ /g'`; do | |
for file in $dir/*; do | |
base=`basename $file` | |
desc=`whatis $base 2>&1` | |
[ $? -eq 0 ] && echo $desc | |
done | |
done | |
} | |
whatisthere | sort | less -SR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment