#!/bin/bash DIRECTORY="/usr/bin" for file in $DIRECTORY/* do whatis `basename $file` done exit 0 #### perl -e "system qw (whatis /usr/bin/*)"