From owner-freebsd-questions@FreeBSD.ORG Mon May 10 03:38:26 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 EF5A3106566B for ; Mon, 10 May 2010 03:38:26 +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 DDDD18FC08 for ; Mon, 10 May 2010 03:38:26 +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 20:38:26 -0700 Message-ID: <4BE77FB1.2050607@a1poweruser.com> Date: Mon, 10 May 2010 11:38:25 +0800 From: Fbsd1 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: "questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 May 2010 03:38:27.0184 (UTC) FILETIME=[40354F00:01CAEFF2] X-Sender: fbsd1@a1poweruser.com Cc: Subject: 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 03:38:27 -0000 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. Does anyone have a example they would share with me? Thanks.