From owner-freebsd-questions@FreeBSD.ORG Mon May 10 03:43:30 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 285E5106564A for ; Mon, 10 May 2010 03:43:30 +0000 (UTC) (envelope-from amijaresp@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id AC84F8FC1B for ; Mon, 10 May 2010 03:43:29 +0000 (UTC) Received: by bwz8 with SMTP id 8so1647655bwz.3 for ; Sun, 09 May 2010 20:43:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Sf1GkqVAVCYpyizNwaSvRsMtA1E9P9ENQziBcEgQeic=; b=kIj6aP5LWtDw+FrPwOtKoKAkSetOwd8d04Lqpc8ijv8YAX1lLMAnCa+7EmFqEbJumd SYzzDZ/aGeplDnfKNidjjHE1EOT6GRsctj+a1b9H6CHr1p8ZU5adbGHOfjfBta4okWdc m80kHPa1Grw2pTKVxK1IGYw3BLoe7k5aVtcQk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Ue93lKiNSFKNkgNOyCdkBU8u3OvWz3XsNd6uQvSSPLbhTbjFOAAFmsAK5R5whz8YoD zMeE/JMYgdCZ65HqEKxbqyWQSnoe3QnVQU/Vw9wreuJY+x5epfUZc1MWiIPcJlh+QaOM xrDes/r7UCEIwVKLIvPCHfXfyd843iyv53Q1o= MIME-Version: 1.0 Received: by 10.204.15.23 with SMTP id i23mr2067206bka.106.1273463008343; Sun, 09 May 2010 20:43:28 -0700 (PDT) Received: by 10.204.152.196 with HTTP; Sun, 9 May 2010 20:43:28 -0700 (PDT) In-Reply-To: <4BE77FB1.2050607@a1poweruser.com> References: <4BE77FB1.2050607@a1poweruser.com> Date: Sun, 9 May 2010 23:13:28 -0430 Message-ID: From: Alberto Mijares To: Fbsd1 Content-Type: text/plain; charset=UTF-8 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 03:43:30 -0000 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 Alberto Mijares