From owner-freebsd-questions Thu Feb 21 12:51:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.dra.com (mail.dra.com [192.65.218.159]) by hub.freebsd.org (Postfix) with ESMTP id B30C937B404 for ; Thu, 21 Feb 2002 12:51:19 -0800 (PST) Received: from stlmail.dra.com (stlmail.dra.com [192.65.218.119]) by mail.dra.com (8.9.1/8.9.1) with ESMTP id OAA16402; Thu, 21 Feb 2002 14:51:16 -0600 (CST) Received: by stlmail.dra.com with Internet Mail Service (5.5.2653.19) id <1CJCNNL0>; Thu, 21 Feb 2002 14:51:14 -0600 Message-ID: From: Eric Six To: "'Ceri'" , Eric Boucher Cc: FreeBSD Subject: RE: Bourne shell programming problem no.2 Date: Thu, 21 Feb 2002 14:51:13 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" 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 lol... That's how I got through programming AI interfaces college.. come on now! :) I would use perl for this... is your homework strictly bash? Eric -----Original Message----- From: Ceri [mailto:setantae@submonkey.net] Sent: Thursday, February 21, 2002 2:47 PM To: Eric Boucher Cc: FreeBSD Subject: Re: Bourne shell programming problem no.2 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message