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