VOGONS

Common searches


How to append text files?

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by Marting

User metadata
Rank Newbie
Rank
Newbie

Hello,
I need to append text files similar way like in DOS command copy a+b a (append file "b" to "a"), but it doesn't work to me in DOSBOX MB6.
Any ideas what shell I do?

Reply 3 of 4, by weedeewee

User metadata
Rank l33t
Rank
l33t

Yes it does.

C:\>copy con A.txt A ^Z 1 file(s) copied. […]
Show full quote

C:\>copy con A.txt
A
^Z
1 file(s) copied.

C:\>copy con B.txt
BB
^Z
1 file(s) copied.

C:\>copy A.txt+B.txt C.txt
A.txt
B.txt
1 file(s) copied.

C:\>type C.txt
A
BB

C:\>copy A.txt+B.txt
A.txt
B.txt
1 file(s) copied.

C:\>type B.txt
BB

C:\>type A.txt
A
BB

C:\>

for binary files do a copy /B ...

Right to repair is fundamental. You own it, you're allowed to fix it.
How To Ask Questions The Smart Way
Do not ask Why !
https://www.vogonswiki.com/index.php/Serial_port