Re: Parsing
- Posted by Raude Riwal <RAUDER at THMULTI.COM> Nov 24, 1999
- 697 views
On linux? sed 's/nametoreplace/newname/g' oldfile > newfile ...sorry too tempting... Riwal Raude rauder at thmulti.com > -----Original Message----- > From: Greg Phillips [SMTP:i.shoot at REDNECKS.COM] > Sent: Wednesday, November 24, 1999 5:15 AM > To: EUPHORIA at LISTSERV.MUOHIO.EDU > Subject: Parsing > > Hello there, > > I'm looking for a simple way to read from a text file, replacing certain > strings with others. > > For example: > Hello there, my name is [Name]. > > [Name] would be replaced with "Greg". > > There is an emphsis an accuracy, and simplicity. There *must* be a > simpler way than how I'm doing it. > > Thanks, > Greg Phillips