Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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