Hi Esjo! thanx for your time! Greatly appreciated.
- substitution file -
red blue
black grey
white green
orange gold
- target text file - (where xx.. is irrevant)
xx orange xx xxx xx xx AAA>> xx xxx xxx
x red xx xxx xx xx AAA>> xx xxx xxx
xx black xx xxx xx xx AAA>> xx xxx xxx
xx xxx...
I'm tring to do search & replace with tcl. I have 2 files, one with search key and its corresponding replacement value, and a target text file. The file with key/value is simple - it has key/values space delimited in 2 colums:
ex. (first element is the key, 2nd is the replacement)
blue black...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.