command line - How to find and replace a character and apply on a large file -
I'm trying to change a fixed character found in the convert.txt. Now, convert. Each letter found in Txt will be converted into a file in Linefeed.
I have this code:
for / f "delims =" %% s in (convert .txt) (type c: \ PETER \% % A | repl.bat "\ %% s" "%% s \ n" X> c: \ PETER \ %% a)
I replace.bat on this page Tried to use the suggestion. Now, when I am trying to convert the character of a large file into a line feed, the output is not complete. Do we have a limit to this matter?
As MC ND said in his comment, you can read together and send the same file Write. You must type in a new file, and then change the original with the new one using MOVE.
for / f "delims =" in %% (convert.txt) (type "c: \ PETER \ %% one" | repl.bat "\ %% s" %% s \ n "X" "c: \ Peter \ %% a.new" move / y "c: \ Peter \% div>
Comments
Post a Comment