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/bash | |
# this script show description for each command placed in /usr/bin | |
# hoje estou usando opensuse e a listagem retornava alguns comandos | |
# sem descrição por isso filtrei com grep -v | |
describe() { | |
for i in `ls /usr/bin`; do | |
whatis $i 2>/dev/null | |
done | |
} | |
describe | less | |
# to get same output try this | |
# whatis `ls /usr/bin/*` 2> /dev/null | less |