format script

Maarten Litmaath maart at cs.vu.nl
Tue May 9 08:20:00 AEST 1989


dan at 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 at bilpin)  |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list