Merge command on windows

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Merge command on windows
# 1  
Old 02-10-2012
Merge command on windows

Hi all,

How to join spitted files into a single file on windows as we have a CAT command on unix.

Regards,

---------- Post updated 02-10-12 at 12:54 AM ---------- Previous update was 02-09-12 at 12:56 AM ----------

I think my question is unclear.

Let me explain it again.

I want to combine number of files into a single file on windows xp .
Please tell me the command on windows

FYI
The files were splitted into number of files on solaris machine.

Thanks
# 2  
Old 02-10-2012
Code:
 
type *.txt > output.txt

# 3  
Old 02-10-2012
This is one rare case where the command in UNIX and CMD is actually the same, because CMD has cat too.

Code:
cat *.txt > output

# 4  
Old 02-11-2012
Thank you both for providing the commands.I used type command and it worked for me.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Merge multi-lines into one single line using shell script or Linux command

Hi, Can anyone help me for merge the following multi-line log which beginning with a " and line ending with ": into one line. *****Original Log***** 087;2008-12-06;084403;"mc;;SYHLR6AP1D\LNZW;AD-703;1;12475;SYHLR6AP1B;1.1.1.1;0000000062;HGPDI:MSISDN=12345678,APNID=1,EQOSID=365;... (3 Replies)
Discussion started by: rajeshlinux2010
3 Replies

2. UNIX for Advanced & Expert Users

Merge two archives, command line

this has been a script, that I'd like to run as a command line now, anyway, it worked in a simpler way, but now the terminal complains about the delimiter to the command "cut" that should be a single character. The aim is to join two files or archives, one with about 8 thousand files merging with... (2 Replies)
Discussion started by: 1in10
2 Replies

3. Windows & DOS: Issues & Discussions

find command in windows

Dear Experts, Please tell me what is the equivalent command of find . -name "*.txt" -print which prints the all the text files in all the folders and sub folders in case of unix. in windows how can i achieve the same output in windows please inform and also find . -name "*.txt" -print|... (2 Replies)
Discussion started by: vin_pll
2 Replies

4. Shell Programming and Scripting

Merge two files in windows using perl script

Hi I want to merge two or more files using perl in windows only(Just like Paste command in Unix script) . How can i do this.Is ther any single command to do this? Thanks Kunal (1 Reply)
Discussion started by: kunal_dixit
1 Replies
Login or Register to Ask a Question