[comp.unix.questions] format script

dan@hrc.UUCP (Dan Troxel) (05/06/89)

I need a format script that will adjust the following:

/v01/ansi.c.Z: ( 7028 ): Subject: Yacc and Lex for 11/12/84 draft of ANSI C
/v01/bed.Z: ( 9055 ): Subject: Bed version 1.0 (editor for binary files).

to:

/v01/ansi.c.Z:   ( 7028 ):   Subject: Yacc and Lex for 11/12/84 draft of ANSI C
/v01/bed.Z   :   ( 9055 ):   Subject: Bed version 1.0 (editor for binary files).

This will be for public archive documentation. Any help will be appreciated!

maart@cs.vu.nl (Maarten Litmaath) (05/09/89)

dan@hrc.UUCP (Dan Troxel) writes:
\I need a format script that will adjust the following:

\/v01/ansi.c.Z: ( 7028 ): Subject: Yacc and Lex for 11/12/84 draft of ANSI C
\/v01/bed.Z: ( 9055 ): Subject: Bed version 1.0 (editor for binary files).

\to:

\/v01/ansi.c.Z:   ( 7028 ):   Subject: Yacc and Lex for 11/12/84 draft of [...]
\/v01/bed.Z   :   ( 9055 ):   Subject: Bed version 1.0 (editor for binary [...]

[lines truncated for clarity]

awk -F: '{ printf("%-13s:  %s:  %s:%s\n", $1, $2, $3, $4) }' inputfiles
-- 
 "If it isn't aesthetically pleasing, |Maarten Litmaath @ VU Amsterdam:
  it's probably wrong." (jim@bilpin)  |maart@cs.vu.nl, mcvax!botter!maart