#!/bin/sh for dir in /usr/bin /bin /usr/sbin do cd $dir for x in ./* do command=`basename $x` if [ ! -x $x -o -h $x ] then continue; fi count=`find /usr/share/man -name "$command"'.*' -print |\ wc | awk '{ print $1 }'` if [ "$count" = "0" ] then echo "$command" fi done done