Re: Parsing

new topic     » goto parent     » topic index » view thread      » older message » newer message

On linux?
sed 's/nametoreplace/newname/g' oldfile > newfile
...sorrysmile 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu