I'm new to programming anything and while I can find my way around the CLI and Terminal, I have no idea how to do the following:
Use a comma-delimited text file of terms (A,B) to replace all the A-terms in a folder of TXT files with the B-terms.
For example, if my comma-delimited text file has:
A,B
Foo,foobar
Fod,fodder
Fog,fogger
and then I have a folder of 10 .txt files that contain the A words, is there some kind of script that will go through the comma-delimited file, locate all instances of words from the A column in that folder of 10 text files and then replace them with the contents of the B column?
Thanks for any help!
Use a comma-delimited text file of terms (A,B) to replace all the A-terms in a folder of TXT files with the B-terms.
For example, if my comma-delimited text file has:
A,B
Foo,foobar
Fod,fodder
Fog,fogger
and then I have a folder of 10 .txt files that contain the A words, is there some kind of script that will go through the comma-delimited file, locate all instances of words from the A column in that folder of 10 text files and then replace them with the contents of the B column?
Thanks for any help!