Print this page
XXX Remove nawk(1)
@@ -21,12 +21,10 @@
#
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# ident "%Z%%M% %I% %E% SMI"
-#
# Start mirror resync threads.
DEVFSADM=/usr/sbin/devfsadm
METADEVADM=/usr/sbin/metadevadm
METASYNC=/usr/sbin/metasync
@@ -55,11 +53,11 @@
#
# The following command saves all of the auto-take set names
# into the TMPFILE
name_str=`gettext "Set name"`
mn_str=`gettext "Multi-owner"`
- $METASET | /bin/nawk -F ' |\t|,' -v snm="$name_str" \
+ $METASET | /usr/xpg4/bin/awk -F ' |\t|,' -v snm="$name_str" \
-v mstr="$mn_str" '$0 ~ snm { \
if (index($0, mstr) == 0) print $4 \
}' > $TMPFILE 2>&1
if [ -s "$TMPFILE" ]; then