From owner-freebsd-questions@FreeBSD.ORG Mon May 10 04:07:57 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EFBF5106566B for ; Mon, 10 May 2010 04:07:57 +0000 (UTC) (envelope-from fbsd1@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id D7E368FC0A for ; Mon, 10 May 2010 04:07:56 +0000 (UTC) Received: from [10.0.10.3] ([202.69.173.106]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 9 May 2010 21:07:56 -0700 Message-ID: <4BE7869B.1060406@a1poweruser.com> Date: Mon, 10 May 2010 12:07:55 +0800 From: Fbsd1 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Alberto Mijares References: <4BE77FB1.2050607@a1poweruser.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 May 2010 04:07:57.0115 (UTC) FILETIME=[5F2B58B0:01CAEFF6] X-Sender: fbsd1@a1poweruser.com Cc: "questions@freebsd.org" Subject: Re: how to find literal in file and them delete that line 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: Mon, 10 May 2010 04:07:58 -0000 Alberto Mijares wrote: > On Sun, May 9, 2010 at 11:08 PM, Fbsd1 wrote: >> I want to search every line in the specified file for a literal and if found >> then delete that line from the file and save the file all from within a sh >> type of shell script. > > > man(1) sed > > Regards > That makes no sense to me. need example