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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
type c:\source\*.txt > c:\dest\allfile.txt
or
cd /d c:\source
type file1.txt file2.txt > c:\dest\allfile.txt
Steve
ASKER
thanks
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