From owner-freebsd-questions@FreeBSD.ORG Tue Jul 25 15:48:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A079916A4DE for ; Tue, 25 Jul 2006 15:48:48 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA77943D5D for ; Tue, 25 Jul 2006 15:48:47 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 22415 invoked by uid 0); 25 Jul 2006 15:47:17 -0000 Received: from unknown (HELO Grumpy.DynDNS.org) (216.186.148.249) by smtp6.knology.net with SMTP; 25 Jul 2006 15:47:17 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id 1E04928421; Tue, 25 Jul 2006 10:48:45 -0500 (CDT) Date: Tue, 25 Jul 2006 10:48:45 -0500 From: David Kelly To: freebsd-questions@freebsd.org Message-ID: <20060725154845.GB30615@Grumpy.DynDNS.org> References: <04E232FDCD9FBE43857F7066CAD3C0F11EEAFA@svmailmel.bytecraft.internal> <20060725145102.GB1157@holestein.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060725145102.GB1157@holestein.holy.cow> User-Agent: Mutt/1.4.2.1i Subject: Re: A question for the AWK wizards X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD-Questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2006 15:48:48 -0000 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.