Print this page
XXX Remove nawk(1)

@@ -22,11 +22,10 @@
 #
 #       Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
 #         All Rights Reserved
 
 
-#ident  "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.6   */
 #       "lastlogin - keep record of date each person last logged in"
 #       "bug - the date shown is usually 1 more than it should be "
 #       "       because lastlogin is run at 4am and checks the last"
 #       "       24 hrs worth of process accounting info (in pacct)"
 PATH=/usr/lib/acct:/usr/bin:/usr/sbin

@@ -55,11 +54,11 @@
 #       "name and adds the date"
 #       "line 3 - sorts in reverse order by login name; gets"
 #       "1st occurrence of each login name and resorts by date"
 acctmerg -a < nite/ctacct.$_day | \
 sed -e "s/^[^   ]*[     ]\([^   ]*\)[   ].*/$_d  \1/" | \
-nawk    '/^00-00-00/ {
+/usr/xpg4/bin/awk       '/^00-00-00/ {
                 $0 = "00" $0
         }
         /^[0-9][0-9]-/ {
                 d=substr($0,1,2);
                 if (d<=68) {

@@ -68,11 +67,11 @@
                         $0 = "19" $0
                 }
         }
         { print }' - sum/loginlog | \
 sort -r +1 | uniq +10 | sort | \
-nawk    '/^[0-9][0-9][0-9][0-9]-/ {
+/usr/xpg4/bin/awk       '/^[0-9][0-9][0-9][0-9]-/ {
         $0 = substr($0,3)
     }
     { print }' > sum/tmploginlog
 cp sum/tmploginlog sum/loginlog
 rm -f sum/tmploginlog