From owner-freebsd-questions Thu Feb 21 12:47:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from relay3-gui.server.ntli.net (relay3-gui.server.ntli.net [194.168.4.200]) by hub.freebsd.org (Postfix) with ESMTP id BD2A737B402 for ; Thu, 21 Feb 2002 12:47:32 -0800 (PST) Received: from pc4-card4-0-cust162.cdf.cable.ntl.com ([80.4.14.162] helo=rhadamanth.private.submonkey.net ident=mailnull) by relay3-gui.server.ntli.net with esmtp (Exim 3.03 #2) id 16e07l-000681-00; Thu, 21 Feb 2002 20:47:29 +0000 Received: from setantae by rhadamanth.private.submonkey.net with local (Exim 3.35 #1) id 16e07k-0001eF-00; Thu, 21 Feb 2002 20:47:28 +0000 Date: Thu, 21 Feb 2002 20:47:28 +0000 From: Ceri To: Eric Boucher Cc: FreeBSD Subject: Re: Bourne shell programming problem no.2 Message-ID: <20020221204728.GB6201@rhadamanth> Mail-Followup-To: Ceri , Eric Boucher , FreeBSD References: <20020221174633.43542.qmail@web9404.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020221174633.43542.qmail@web9404.mail.yahoo.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 21, 2002 at 09:46:33AM -0800, Eric Boucher wrote: > Hi everyone, > > I have another problem while programming with the > bourne shell. I want to be able to write in a file at > a certain place. For example, if a file contain: > > AAA BBB CCC DDD. > EEE FFF GGG HHH. > III JJJ KKK LLL. > > I want to change the word "GGG" by "TTT". But "GGG" > can be anyware in the file (which I have permission to > write by the way).How do I do such a trick with the > bourne shell? > > Thanks a lot! This is your homework, right ? Ceri -- keep a mild groove on To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message