home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / util / namecheck.r < prev    next >
Text File  |  1994-09-08  |  271b  |  17 lines

  1. #! /bin/sh
  2. # test namecheck, except for white-space cases
  3.  
  4. status=0
  5. while read name response
  6. do
  7.     it="`echo \"$name\" | awk -f namecheck.awk`"
  8.     if test " $it" != " $response"
  9.     then
  10.         echo "$name:"
  11.         echo "saw:    $it"
  12.         echo "not:    $response"
  13.         status=1
  14.     fi
  15. done
  16. exit $status
  17.