Date: Tue, 25 Jul 2006 10:48:45 -0500 From: David Kelly <dkelly@hiwaay.net> To: freebsd-questions@freebsd.org Subject: Re: A question for the AWK wizards Message-ID: <20060725154845.GB30615@Grumpy.DynDNS.org> In-Reply-To: <20060725145102.GB1157@holestein.holy.cow> References: <04E232FDCD9FBE43857F7066CAD3C0F11EEAFA@svmailmel.bytecraft.internal> <20060725145102.GB1157@holestein.holy.cow>
next in thread | previous in thread | raw e-mail | index | archive | help
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@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060725154845.GB30615>