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!
Credits 71 Posts 59 Joined 2007-12-27 17:53 18-year member UID 106966 Gender Male
Status Offline
If there are two files, 1.txt and 2.txt
Contents of 1.txt:
a1
b1
c1
d1
e1
Contents of 2.txt:
a2
b2
c2
d2
e2
Merge them into 3.txt
[1]a1[2]a2[3]
[1]b1[2]b2[3]
[1]c1[2]c2[3]
[1]d1[2]d2[3]
[1]e1[2]e2[3]
Credits 71 Posts 59 Joined 2007-12-27 17:53 18-year member UID 106966 Gender Male
Status Offline
I originally had one txt file and split it into three files
for /f %%i in (a1.txt,a3.txt,a5.txt) do echo %%i>>a1.txt
Now I want to merge them in the above format....