China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-07 00:36
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Question about extracting specified content from a "text file" and changing it View 640 Replies 1
Original Poster Posted 2007-12-26 20:20 ·  中国 山东 烟台 联通
初级用户
Credits 20
Posts 8
Joined 2006-08-30 00:02
19-year member
UID 61548
Status Offline
Could the experts please help me see how to solve this: a problem about extracting specified content from a "text file" and changing the content

The text is as follows (there is a space after the parenthesis):
1) dsfja scholar-official on top
2) but launch point
3) somersault launch point style
...................
n) views that arise

I want to use a batch file to turn it into the following text format:

vvvvvvdsfja scholar-official on topnn
vvvvvvbut launch pointnn
vvvvvvsomersault launch point stylenn
...................
vvvvvvviews that arisenn

Thanks!!!

[ Last edited by xinshou123 on 2007-12-26 at 08:23 PM ]
Floor 2 Posted 2007-12-26 20:26 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Forum Jump: