How to rejoin hjsplit files on a Mac?
June 13, 2006 11:56 AM Subscribe
Files split with hjsplit: is there any way to rejoin them on my Mac, without using Mac Joiner?
I'm running 10.4.5, and Mac Joiner wants me to have a version of Classic that I don't have. Any other solutions?
I'm running 10.4.5, and Mac Joiner wants me to have a version of Classic that I don't have. Any other solutions?
on the off chance that the files are simply split up with no markings or modifications in the parts, would it be possible to do this with cat and >>? if it's only a few files, (make backups) and try this in a terminal window in the files' directory:
cat secondpart >> firstpart
cat thirdpart >> firstpart
...
cat lastpart >> firstpart
and then see if the resulting file (firstpart) is valid. one could also use a bash script, but for that i'd need to know the naming convention.
disclaimer: IANA mac user, but i don't see why this wouldn't work if the files are split cleanly.
posted by kaytwo at 12:04 PM on June 13, 2006
cat secondpart >> firstpart
cat thirdpart >> firstpart
...
cat lastpart >> firstpart
and then see if the resulting file (firstpart) is valid. one could also use a bash script, but for that i'd need to know the naming convention.
disclaimer: IANA mac user, but i don't see why this wouldn't work if the files are split cleanly.
posted by kaytwo at 12:04 PM on June 13, 2006
Response by poster: I tried JAxe but it didn't want to run; the GUI version launched, at least. I've misplaced the files so am getting them again, will let you know if that works, thanks! If not, I'll try the second option, thank you for that as well.
posted by livii at 12:12 PM on June 13, 2006
posted by livii at 12:12 PM on June 13, 2006
E Pluribus Unum is a simple, free app that joins pretty much anything I've thrown at it.
posted by Thorzdad at 12:44 PM on June 13, 2006
posted by Thorzdad at 12:44 PM on June 13, 2006
I forgot to mention that Split&Concat is a universal binary, if that matters to you.
posted by sockpup at 12:58 PM on June 13, 2006
posted by sockpup at 12:58 PM on June 13, 2006
Response by poster: JAxe still doesn't work, but the GUI Java application performed quite adequately. E Pluribus Unum didn't seem to want to split, sorry. I'll check out Split&Concat too to see how it works. Thanks for all the help - will be passing this info along.
posted by livii at 1:27 PM on June 13, 2006
posted by livii at 1:27 PM on June 13, 2006
MacHacha is a more elegant alternative to Split&Concat.
posted by jjg at 2:12 PM on June 13, 2006 [1 favorite]
posted by jjg at 2:12 PM on June 13, 2006 [1 favorite]
Do it by prompt as kaytwo said. It's free, and using the prompt never hurt you anyways. FWIW, I'm running 10.4.5 on a Powerbook.
posted by BioCSnerd at 3:39 PM on June 13, 2006
posted by BioCSnerd at 3:39 PM on June 13, 2006
kaytwo's method is the hard way.
Just copy all the files into a new subdirectory somewhere. (make sure to make copies, so you don't damage the originals.)
Normally, file splitters will name the parts so that they are automatically sorted when you list the directory. So all you have to do is:
If the splitter was stupid and didn't name them in sort order, then you'd have to:
You can use tab completion on the filenames, so it should take only a few seconds to type.
If the splitter was extra-stupid and added padding bytes or other such garbage, then the joined file might be corrupt... which is why you made copies, no? :)
posted by Malor at 4:28 PM on June 13, 2006
Just copy all the files into a new subdirectory somewhere. (make sure to make copies, so you don't damage the originals.)
Normally, file splitters will name the parts so that they are automatically sorted when you list the directory. So all you have to do is:
cd directoryinquestion
cat * >joinedfile
If the splitter was stupid and didn't name them in sort order, then you'd have to:
cat firstfile secondfile thirdfile fourthfile ... >joinedfile
You can use tab completion on the filenames, so it should take only a few seconds to type.
If the splitter was extra-stupid and added padding bytes or other such garbage, then the joined file might be corrupt... which is why you made copies, no? :)
posted by Malor at 4:28 PM on June 13, 2006
MacHacha = perfect for this. jjg speaks the truth.
posted by drstein at 6:45 PM on June 13, 2006 [1 favorite]
posted by drstein at 6:45 PM on June 13, 2006 [1 favorite]
Response by poster: Thanks for all the additional advice; I checked out MacHacha too and it's another good solution, thank you.
I appreciate all the other advice too, but to be honest I'd far prefer having a program rather than doing it by prompt; I know it's not complicated, but I'd rather not mess around with terminals. :)
posted by livii at 10:14 PM on June 13, 2006
I appreciate all the other advice too, but to be honest I'd far prefer having a program rather than doing it by prompt; I know it's not complicated, but I'd rather not mess around with terminals. :)
posted by livii at 10:14 PM on June 13, 2006
This thread is closed to new comments.
HJSplit for Java is a Java application and will run natively under OS X 10.4.5. No Classic installation is needed.
This application will rejoin split files.
posted by Mr. Six at 11:59 AM on June 13, 2006