How to delete string in lines of text file using Batch file?
Example: ABCDE A12345
BCDEF B12345
CDEFG C12345
I want to delete or remove strings (ABCDE, BCDEF, CDEFG) and remain the last strings in the file. Can someone help me to this in batch file? Thanks in advance.
@echo off>output.txt
for /f "tokens=1-2 delims= " %%a in (input.txt) do (
>> output.txt echo %%b
)
I take it this worked!
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |