Print this page
XXX Remove nawk(1)

@@ -21,18 +21,17 @@
 #
 
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#ident  "%Z%%M% %I%     %E% SMI"
 
 if [ $# -ne 1 ]
 then
         echo "Usage: `basename $0` modname" >&2
         exit 2
 fi
 
-exec nawk -v a="$1" -v del='#' '$1 !~ /^#|^$/ && $1 == a { \
+exec /usr/xpg4/bin/awk -v a="$1" -v del='#' '$1 !~ /^#|^$/ && $1 == a { \
     num = split($2, maj, del); \
     if (num > 1) { print maj[1] } else { print $2 } \
     found = 1; exit 0 } \
     END {if (!found) exit 1}' < /etc/name_to_major