I have 120GB file on HP-UX and need to split to 4GB pieces and join them on Windows.
As I don't want to use zipsplit, tried to use split command and join on windows using "copy /b" but it doesn't work (It merges and creates new file but file is corrupt)
What is the correct way to join UNIX split files on Windows? ( "copy /b" not working correctly)
What is the content of the file? "Is it plain ASCII text?", I suppose is the real question. If this is a data-file, compiled code or other 'binary' file, then I doubt split is the right things for it as joining up again will probably insert CRLF through it.
Can you not compress the file? Winzip will open that type of file. As an alternate, you can buy PKZip for Unix from PKWare, and that will give you the options to split it. We bought it to compress on MVS/ZOS and extract on AIX and it worked a treat. (No commission is paid to me if you purchase it :rolleyes:)
You could try a plain split on HP-UX and you might, get lucky with:-
C:\> type file_part.1 file_part.2 file_part.3 file_part.4 file_part.5 > whole_file
The DOS type is similar to the Unix cat, so I'm hopeful, but no guarantees.
This above command worked fine and created split files named xaa, xab, xac ....
As FTP disconnects somewhere in between while transferring huge 120GB compressed file, I consider the option of splitting, transfer and then join them on Windows box.