A question for the AWK wizards

David Kelly dkelly at hiwaay.net
Tue Jul 25 15:48:48 UTC 2006


On Tue, Jul 25, 2006 at 10:51:02AM -0400, Parv wrote:
> 
> As it is, any line longer than 159 characters will just overflow.
> You need to use substr() not awk to shorten a line.  Even after that
> modification, that won't solve your actual problem as the awk script
> will just shorten EACH line (when record separator is newline), not
> the whole output.
> 
> There are ports which seems to do what you want to do.

Ports? How about dd? Should be as simple as piping it thru
"dd count=159" but then again I admit to having not paid full attention
to this thread.

-- 
David Kelly N4HHE, dkelly at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.


More information about the freebsd-questions mailing list