Is there replacement for cat on Windows

Artem Tikhomirov picture Artem Tikhomirov · Sep 13, 2008 · Viewed 429.8k times · Source

I need to join two binary files with a *.bat script on Windows.

How can I achieve that?

Answer

Nathan Jones picture Nathan Jones · Sep 13, 2008

Windows type command works similarly to UNIX cat.

Example 1:

type file1 file2 > file3

is equivalent of:

cat file1 file2 > file3

Example 2:

type  *.vcf > all_in_one.vcf  

This command will merge all the vcards into one.