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-12 03:21
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How can I loop and insert two lines after each line in a text file? View 815 Replies 2
Original Poster Posted 2010-07-06 10:25 ·  中国 山东 移动
新手上路
Credits 8
Posts 7
Joined 2010-06-12 16:44
16-year member
UID 168700
Gender Male
Status Offline
For example: original text content aaaaaa
bbbbb
ccccccccc
Loop and insert one line of string after each line:
aaaaaa
oooooooooooooo
55555555555555
bbbbb
oooooooooooooo
55555555555555
ccccccccc
oooooooooooooo
55555555555555
Could the experts please help me out? Thanks

[ Last edited by qdfeng on 2010-7-6 at 11:30 ]
Floor 2 Posted 2010-07-06 13:00 ·  中国 北京 263网络通信电信数据中心
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore
Floor 3 Posted 2010-07-06 17:06 ·  中国 山东 青岛 移动
新手上路
Credits 8
Posts 7
Joined 2010-06-12 16:44
16-year member
UID 168700
Gender Male
Status Offline
Thanks very much, it's very useful!!!
Forum Jump: