xref: /original-bsd/usr.bin/uucp/UUAIDS/uutbl (revision bafc759a)
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   '
25grep -v "uuusage: mangled record" \
26	| sed '
27		1i\
28.DS\
29.TS\
30center, tab(:);\
31c s s s s s s\
32l r r r r r r\
33_ _ _ _ _ _ _\
34l n n n n n n.
35	1a\
36.sp
37	s/^[ 	]*//
38	2,$s/  */:/g
39	$a\
40.DE\
41.TE
42'
43