home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 4.0 PR1 / NeXT_NEXTSTEP_4.0_PR1_(beta).rar / Openstep4-Pr1User.iso / private / etc / uucp / UUAIDS / uutbl < prev    next >
Text File  |  1995-09-02  |  888b  |  43 lines

  1. #! /bin/sh
  2. : '/*********************************************************************
  3.    program:    uutbl
  4.    description:    Make a "tbl" entry from output of uuusage command.
  5.         Produces tbl commands to make a centered display
  6.         table suitable for inclusion in monthly report.
  7.  
  8.    programmer:    Alan S. Watt
  9.    
  10.    Sccsid=@(#)uutbl.sh    1.1
  11.  
  12.    usage:
  13.     uuusage [options] | uutbl
  14.  
  15.    history:
  16.     03/28/82    original version
  17.     05/27/82    Fix to eliminate "mangled record" diagnostics
  18.             from input.
  19.    *********************************************************************/'
  20.  
  21. : 'delete all the information on user usage and just report
  22.    the system usage summary. Leave the first line (the banner
  23.    heading) in.
  24.    '
  25. grep -v "uuusage: mangled record" \
  26.     | sed '
  27.         1i\
  28. .DS\
  29. .TS\
  30. center, tab(:);\
  31. c s s s s s s\
  32. l r r r r r r\
  33. _ _ _ _ _ _ _\
  34. l n n n n n n.
  35.     1a\
  36. .sp
  37.     s/^[     ]*//
  38.     2,$s/  */:/g
  39.     $a\
  40. .DE\
  41. .TE
  42. '
  43.