From owner-freebsd-questions@FreeBSD.ORG Wed Aug 18 13:42:34 2010 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 C18B21065673 for ; Wed, 18 Aug 2010 13:42:34 +0000 (UTC) (envelope-from jacks@sage-american.com) Received: from mail.sagedata.net (mail.sagedata.net [38.106.15.121]) by mx1.freebsd.org (Postfix) with ESMTP id A241F8FC18 for ; Wed, 18 Aug 2010 13:42:34 +0000 (UTC) Received: from sagemaster (sageweb.net [65.68.247.73]) by mail.sagedata.net (8.14.4/8.14.4) with SMTP id o7IDgXrg051873 for ; Wed, 18 Aug 2010 08:42:33 -0500 (CDT) (envelope-from jacks@sage-american.com) X-Authentication-Warning: mail.sagedata.net: Host sageweb.net [65.68.247.73] claimed to be sagemaster Message-Id: <3.0.1.32.20100818084231.00ecef30@sage-american.com> X-Sender: jacks@sage-american.com X-Mailer: Windows Eudora Pro Version 3.0.1 (32) Date: Wed, 18 Aug 2010 08:42:31 -0500 To: freebsd-questions@freebsd.org From: "Jack L. Stone" Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Scanned-By: milter-spamc/1.15.388 (mail.sagedata.net [38.106.15.121]); Wed, 18 Aug 2010 08:42:34 -0500 X-Scanned-By: milter-sender/1.16.915 (mail.sagedata.net [38.106.15.121]); Wed, 18 Aug 2010 08:42:34 -0500 X-Spam-Status: NO, hits=-10.00 required=4.50 X-Spam-Report: Content analysis details: (-10.0 points, 4.5 required) | | pts rule name description | ---- ---------------------- -------------------------------------------------- | -0.0 SHORTCIRCUIT Not all rules were run, due to a shortcircuited rule | -10 ALL_TRUSTED Passed through trusted hosts only via SMTP | Subject: Extracting a variable listing 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: Wed, 18 Aug 2010 13:42:34 -0000 Sorry to return to the trough again for script help, but find excellent answers here when all else fails, and I am not very good at it. Trying to develop a script (non-bash) that will extract a variable list of content on a daily basis so I can add it to a master list. Once I have this, I can do the rest of the scripting needed. Here's an example of the need. The content I need will always fall beneath a row of pound signs, and there is content above that row I don't want, like this: bunch of rows I don't need here ############################### <--- the top of stuff needed row1 row2 row3 row4 etc, etc.... So, I need a way to pull out the rows (which vary daily) beneath the pound row and place it in a new temp file that I can "cat >>" into a master file. Appreciate your kind help once again.... (beers on me!) All the best! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american