#!/bin/bash DIRECTORY="/usr/bin" for file in $DIRECTORY/* do whatis `basename $file` done exit 0