From owner-freebsd-questions@FreeBSD.ORG Wed Mar 14 11:37:54 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 1334F16A400 for ; Wed, 14 Mar 2007 11:37:54 +0000 (UTC) (envelope-from raggen@passagen.se) Received: from av12-2-sn2.hy.skanova.net (av12-2-sn2.hy.skanova.net [81.228.8.186]) by mx1.freebsd.org (Postfix) with ESMTP id 9D9CB13C48A for ; Wed, 14 Mar 2007 11:37:53 +0000 (UTC) (envelope-from raggen@passagen.se) Received: by av12-2-sn2.hy.skanova.net (Postfix, from userid 502) id 4BAD538233; Wed, 14 Mar 2007 12:37:52 +0100 (CET) Received: from smtp4-2-sn2.hy.skanova.net (smtp4-2-sn2.hy.skanova.net [81.228.8.93]) by av12-2-sn2.hy.skanova.net (Postfix) with ESMTP id 1B5CA37EC6; Wed, 14 Mar 2007 12:37:52 +0100 (CET) Received: from [192.168.1.6] (81-231-90-251-no41.tbcn.telia.com [81.231.90.251]) by smtp4-2-sn2.hy.skanova.net (Postfix) with ESMTP id BED5037E45; Wed, 14 Mar 2007 12:37:51 +0100 (CET) Message-ID: <45F7DE0F.5020600@passagen.se> Date: Wed, 14 Mar 2007 12:35:43 +0100 From: Roger Olofsson User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: bstitt@tsys.com References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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: Wed, 14 Mar 2007 11:37:54 -0000 Hello Bruce, Without knowing more, may I suggest that you take a look at awk for doing this? You can combine awk and sed if you like. There's a good starting point at http://www.linuxfocus.org/English/September1999/article103.html Good luck! bstitt@tsys.com skrev: > 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. > > Any helpful ideas or any useful links to scripts. > > Thanks so much.. > > Bruce Stitt > TSYS Hosting Services > Voice 706-644-0965 > > ----------------------------------------- > The information contained in this communication (including any > attachments hereto) is confidential and is intended solely for the > personal and confidential use of the individual or entity to whom > it is addressed. The information may also constitute a legally > privileged confidential communication. If the reader of this > message is not the intended recipient or an agent responsible for > delivering it to the intended recipient, you are hereby notified > that you have received this communication in error and that any > review, dissemination, copying, or unauthorized use of this > information, or the taking of any action in reliance on the > contents of this information is strictly prohibited. If you have > received this communication in error, please notify us immediately > by e-mail, and delete the original message. Thank you > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >