How to delete string in the lines of txt file

March 3, 2011 at 07:05:52
Specs: Windows XP
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.

See More: How to delete string in the lines of txt file

Report •

#1
March 3, 2011 at 16:15:02
@echo off>output.txt
for /f "tokens=1-2 delims= " %%a in (input.txt) do (
>> output.txt echo %%b
)

Report •

#2
June 8, 2011 at 14:21:44
I take it this worked!

Report •
Related Solutions


Ask Question