From owner-freebsd-questions@FreeBSD.ORG Sun Nov 2 01:50:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 746AC1065675 for ; Sun, 2 Nov 2008 01:50:12 +0000 (UTC) (envelope-from the.real.david.allen@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.237]) by mx1.freebsd.org (Postfix) with ESMTP id 149D78FC19 for ; Sun, 2 Nov 2008 01:50:12 +0000 (UTC) (envelope-from the.real.david.allen@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1811848rvf.43 for ; Sat, 01 Nov 2008 18:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=sPAhGSgz49FK8Y6wyotiNtHtjP5ilB3mjoU3EkfOadA=; b=CJohxEKBWCmshtxS85hftALawuZLqxUPusaj7VA6nRUXWif6lT3l7ZlRwTl1b/d5h2 9dkP7InSscFZHwF1qEyaPoR/VVU0ZYZnLdWqFhoXh9QtBFlJ8rhC0MHf/pqfx/Hheqfp pA5p+P83vlwBstW2tWUoHY3lXT6t8k1zBPrCw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=JHMagignwHyJ7utA9JPdK3VP6rRJKaWpXdW9fWO+KPk6SMcvdt4EioajbHac4q9XoF 4mqbHNqIKUHR2thl2uYoAwQ6dZC/OC5vYddU9Y7N+1PjDmpJRJhDc6N3eWNPh1U1Z4kK Gfb1m121PNTQHDDqPz0aFD59E9/ZB/783xUPI= Received: by 10.142.215.5 with SMTP id n5mr6342430wfg.61.1225588915785; Sat, 01 Nov 2008 18:21:55 -0700 (PDT) Received: by 10.143.18.2 with HTTP; Sat, 1 Nov 2008 18:21:55 -0700 (PDT) Message-ID: <2daa8b4e0811011821q210ae3a5j8f612a0fc79e8844@mail.gmail.com> Date: Sat, 1 Nov 2008 18:21:55 -0700 From: "David Allen" To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: OT: Shell Script using Awk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2008 01:50:12 -0000 My apologies for asking on this list, but I'm stuck without Perl and need to use awk to generate a report. I'm working with a large data set spread across multiple files, but to keep things simple, say I have A Very Long String that containing records, each delimited by a single space. I need to print those records in columnar format, but with only 7 columns per line: record1 record2 record3 record4 record5 record6 record7 record08 record09 record10 record11 record12 record13 record14 ... Should be simple, but I'm getting nowhere. Thanks! -- David "promising never to do this again" Allen