From owner-freebsd-questions@FreeBSD.ORG Mon May 10 04:24:15 2010 Return-Path: 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 E73D1106564A for ; Mon, 10 May 2010 04:24:15 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from spartan.hamla.org (spartan.hamla.org [206.251.255.30]) by mx1.freebsd.org (Postfix) with ESMTP id C2BAE8FC22 for ; Mon, 10 May 2010 04:24:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by spartan.hamla.org (Postfix) with ESMTP id 6B68917116 for ; Mon, 10 May 2010 00:24:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tandon.net; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:reply-to:message-id :subject:subject:from:from:date:date:received:received; s=aegis; t=1273465455; bh=C1kcRGzwMDuPxaHAz33FlSFnilTTzdOm89QF1BSonRQ=; b= Jo6O9+nUe46nCAHSq07Iqy4xkPKd7WG6J55hYj60+3n5HPAiKx9fPwdPIklxyYWi JD74REuJSpAXXk5zAh5SHRnOlUqbw4oO7z1sJ3/NsHajtKg8CnB9uwJ++4xTA91U fA5seIeWLhD7S20s022Df0m9uVm5rHY5qvM7sJKmBbQ= X-Virus-Scanned: by ClamAV at spartan.hamla.org Received: from spartan.hamla.org ([127.0.0.1]) by localhost (spartan.hamla.org [127.0.0.1]) (amavisd-new, port 10027) with LMTP id 5Ho74Yt1uNGi for ; Mon, 10 May 2010 00:24:15 -0400 (EDT) Received: from magic.hamla.org (cpe-69-201-179-80.nyc.res.rr.com [69.201.179.80]) by spartan.hamla.org (Postfix) with ESMTPSA id E32B4170EF for ; Mon, 10 May 2010 00:24:14 -0400 (EDT) Date: Mon, 10 May 2010 00:24:11 -0400 From: Sahil Tandon To: freebsd-questions@freebsd.org Message-ID: <20100510042411.GD32627@magic.hamla.org> References: <4BE77FB1.2050607@a1poweruser.com> <4BE7869B.1060406@a1poweruser.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BE7869B.1060406@a1poweruser.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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 Reply-To: Sahil Tandon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2010 04:24:16 -0000 On Mon, 10 May 2010, Fbsd1 wrote: > 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 > > > That makes no sense to me. > need example What makes no sense? The sed(1) man page? Which section in particular is confusing? And please, explain the rationale for making your port automatically edit /etc/rc.conf. -- Sahil Tandon