From owner-freebsd-questions@FreeBSD.ORG Thu Mar 15 02:02:35 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D23C16A400 for ; Thu, 15 Mar 2007 02:02:35 +0000 (UTC) (envelope-from rjhjr@cox.net) Received: from eastrmmtao106.cox.net (eastrmmtao106.cox.net [68.230.240.48]) by mx1.freebsd.org (Postfix) with ESMTP id 3339913C45A for ; Thu, 15 Mar 2007 02:02:34 +0000 (UTC) (envelope-from rjhjr@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao104.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070315013036.IYWD460.eastrmmtao104.cox.net@eastrmimpo02.cox.net> for ; Wed, 14 Mar 2007 21:30:36 -0400 Received: from localhost ([68.230.186.138]) by eastrmimpo02.cox.net with bizsmtp id apWa1W00f2zbV0s0000000; Wed, 14 Mar 2007 21:30:34 -0400 Date: Wed, 14 Mar 2007 20:30:35 -0500 From: Bob Hall To: freebsd-questions@freebsd.org Message-ID: <20070315013034.GA12988@kongemord.krig.net> Mail-Followup-To: Bob Hall , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Subject: Re: Need a good Unix script that.. 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: Thu, 15 Mar 2007 02:02:35 -0000 On Wed, Mar 14, 2007 at 05:56:26AM -0400, bstitt@tsys.com wrote: > Hello, > > I'm trying to write a script to delete all line that include a certain > pattern in an output file. I sending information to one of our Security > people and they take this data and create a spreadsheet on the > information, I have a constant reoccurring lines within the output file > that they do not need. I'm trying to use the sed command to remove lines > that fits a certain pattern but it does not appear to remove anything. It can probably be done with sed, but without knowing the specifics of what you're doing, no one can give a meaningful opinion. I use sed, grep, and awk all the time, but I can't tell you anything without seeing your sed statement and a sample file. I'd recommend posting to a forum where sed is a frequent topic and giving enough information to allow someone to actually help you. Someone somewhere maintains a sed FAQ along with a file of 100 sed statements giving examples of various tasks. I can't remember the URL, but googling will probably bring it up. Bob Hall