Link to home
Start Free TrialLog in
Avatar of cakester
cakester

asked on

joining large text files


i need a simple script or perhaps there is already a command in the shell to append/join one lare text file to another. we are talking a good few GB of data. I tried doing it in primalscript but it just crashes out when i paste in the other file. Any ideas how to do this?

C
ASKER CERTIFIED SOLUTION
Avatar of khaaz
khaaz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can do this via the command line using the type command...

Type c:\file1.txt >> c:\biggerfile.txt
Type c:\file2.txt >> c:\biggerfile.txt

Remember to put "" round the file name if there are spaces.

Thanks
Avatar of Steve Knight
Copy should be fine as has already been suggested or you can use a single type line too, though I suspect this would be slower.

type c:\source\*.txt > c:\dest\allfile.txt

or
cd /d c:\source
type file1.txt file2.txt > c:\dest\allfile.txt

Steve
Avatar of cakester
cakester

ASKER

thanks