Why wouldn't you simply try for yourself
It wouldn't be much harder than asking a question.
But, yes, JREPL will be much faster, unless your file is small. And JREPL hasn't any restrictions on character strings, unlike batch variable find/replace, which cannot do a search that includes = or starts with *. Plus you can do significantly more complex searches with JREPL due to the regular expression capabilities and many options.
There are techniques available to make your pure batch script significantly faster. But JREPL will still outperform an optimized pure batch script unless the file is small.
You are doing a literal search, so you want the /L option.
Your search and replace strings are in variables, so you use the /V option.
You should use the /XSEQ option in case either string includes non-ASCII (byte values >127).
Use the /F option to specify your input file, and /O - to overwrite the original file with the result.
Code: Select all
call jrepl GJA_S3 HFM_VAR /v /xseq /l /f "%GJA_PROCPATH%HFMFile_Target_%GJA_S3U%" /o -
/JMATCH is used for extracting matching strings (with possible manipulation) throwing away the parts of the file that do not match. So it is not relevant in your situation. And if you ever were to use it, you should use /JMATCHQ instead for far superior speed.
Dave Benham