I have a text whose contents are like this:
∥bc915∥∥∥Ediary 2.53∥59.117.162.144∥2007/08/23/ 01:10:07∥2007/08/23/ 01:10:07∥698∥4∥2007/10/12 13:13∥∥∥∥TATATA∥
The red parts are the parts I want to delete.
And I want to replace the blank parts with "China forever"
And I need to modify only the strings within that delimiter, and not modify anything else
But after writing this much I don't know how to continue
Could I trouble the experts to help me write an example
I'll modify it according to my needs
Many thanks ><"
[ Last edited by leo1984 on 2007-11-5 at 11:53 AM
∥bc915∥∥∥Ediary 2.53∥59.117.162.144∥2007/08/23/ 01:10:07∥2007/08/23/ 01:10:07∥698∥4∥2007/10/12 13:13∥∥∥∥TATATA∥
The red parts are the parts I want to delete.
And I want to replace the blank parts with "China forever"
And I need to modify only the strings within that delimiter, and not modify anything else
But after writing this much I don't know how to continue
@echo off
for /f "delims=" %%f in ('dir /on/b "1.txt"') do (
for /f "tokens=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 delims=∥" %%i in (%%f) do echo %%i∥∥%%j∥%%k∥%%l∥%%m∥%%n∥%%o∥%%p∥∥∥∥%%q∥>>2.txt
)
pause
Could I trouble the experts to help me write an example
I'll modify it according to my needs
Many thanks ><"
[ Last edited by leo1984 on 2007-11-5 at 11:53 AM
