Print this page
XXX Remove nawk(1)
@@ -28,11 +28,10 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# %W% (Sun) %G%
-# ident "%Z%%M% %I% %E% SMI"
PATH=/bin
# Check the group- and world-writable bits on the given file.
@@ -101,18 +100,18 @@
# Check .forward files as well. If the argument "ALL" is given, do it for
# everyone. If no argument to the script is given, just do it for the current
# user. O/w, do it for all arguments.
if [ $# -eq 0 ] ; then
- arg=`id | nawk -F'(' '{n = split($2,id,")"); print id[1]}'`
+ arg=`id | /usr/xpg4/bin/awk -F'(' '{n = split($2,id,")"); print id[1]}'`
elif [ $1 = "ALL" ] ; then
arg=""
else
arg="$*"
fi
-for i in `getent passwd $arg | nawk -F: '{print $6}'`
+for i in `getent passwd $arg | /usr/xpg4/bin/awk -F: '{print $6}'`
do
if [ -f $i/.forward ] ; then
break_down $i/.forward
fi
done