:
#
# $Header: owhat.sh 1.2 95/07/06 11:59:20 pamor Osd<unix> $ Copyr (c) 1994 Oracle
#
# 
# Usage owhat <file1> ...
# 
# owhat searches for what(1) information in the named files for anything
# tagged with "ORACLE" indicating that an oracle bugfix has been applied
# eg:
#	owhat bin/oracle
#	Oracle patches in bin/oracle:
#           kdi.c bug250511 12/01/94 1 of 1
#
# 	owhat lib/libknl.a
#	Oracle patches in bin/oracle:
#           kdi.c bug250511 12/01/94 1 of 1

for item in $* ; do
        echo "Oracle patches in $item":
        what $item | awk '($1 == "ORACLE:") {printf("\t%s\n",substr($0, 10))}' | sort +1
        echo ""
done
exit 0
