I have 2 files (A + B) as below.
I want to replace string "BNo" in file A with the byte position in file B where the string appears.
I can do it using various steps but it takes too long and my files are 46Mb in size.Is there a simple way ?
File A
111,BNo,"A lot of stuff"
222,BNo,"A lot of stuff"
333,BNo,"A lot of stuff"
File B
"Stuff",444,"Stuff"
"Stuff",111,"Stuff"
"Stuff",999,"Stuff"
Result
111,27,"A lot of stuff"
222,0,"A lot of stuff"
333,0,"A lot of stuff"
I want to replace string "BNo" in file A with the byte position in file B where the string appears.
I can do it using various steps but it takes too long and my files are 46Mb in size.Is there a simple way ?
File A
111,BNo,"A lot of stuff"
222,BNo,"A lot of stuff"
333,BNo,"A lot of stuff"
File B
"Stuff",444,"Stuff"
"Stuff",111,"Stuff"
"Stuff",999,"Stuff"
Result
111,27,"A lot of stuff"
222,0,"A lot of stuff"
333,0,"A lot of stuff"