03-11-2019, 04:53 PM
Hello everyone
I switched to Manjaro Linux as my main OS on my desktop computer. A few days passed so far and I haven't had any real issues. Today however one of my favorite online podcasts has been released. Their offline release is always split up into multiple files with extensions like .001, .002 and so on (depending on the size). That's where the first problem arised.
Before switching to Linux I have been using Windows and always had 7Zip installed. Here is where 7Zip played a big role. The 7Zip archive manager handles .001 and etc. files very well. So I could always use it to simply "extract" the full file (extract in quotes as 7Zip probably just joins them instead of really extracting them). Tried the same on Linux now but it seems the graphical archive manager doesn't support this. In fact it didn't even recognize the extensions. Only the first file ending with .001 was recognized by my video player MPV. What good is it if you can play only one half of the file? Nothing, indeed.
So I did some research and by nature Linux comes with a very handy and small tool called "cat". Most of us have heard about it already and have used it during a lot of tasks. And once again this handy tool has come to help. You can easily join split files with extensions like .001 to .XXX (undefined amount of parts) with a single cat command in the terminal.
How to join split files with cat:
0. Open up a terminal if you're using a graphical environment.
1. Navigate to the place where the split files are stored using the cd command (e.g. cd /home/username/Downloads).
2. Execute the following command:
Example:
Alternatives are:
Example:
Or
Example:
For the second method it just really depends on how many parts the file has. So you have to include all parts into the command.
3. Now wait a little while. Depending on the overall file size it just takes time to join the size (also pretty much depends on the power of your computer and storage speed).
4. Success . You have the joined file in the same directory where the split files are. You can check the file and if everything is complete you can delete the split files.
I'm aware that this is a very simple guide and probably quite unnecessary but this is one of the things that you might run into when switching main OSs. Just documenting it for the future. And in my humble opinion this is quite cool because you don't even need any additional software or anything else. cat is installed in 100% of all Linux distributions (no matter whether server or desktop version).
That's it folks.
I switched to Manjaro Linux as my main OS on my desktop computer. A few days passed so far and I haven't had any real issues. Today however one of my favorite online podcasts has been released. Their offline release is always split up into multiple files with extensions like .001, .002 and so on (depending on the size). That's where the first problem arised.
Before switching to Linux I have been using Windows and always had 7Zip installed. Here is where 7Zip played a big role. The 7Zip archive manager handles .001 and etc. files very well. So I could always use it to simply "extract" the full file (extract in quotes as 7Zip probably just joins them instead of really extracting them). Tried the same on Linux now but it seems the graphical archive manager doesn't support this. In fact it didn't even recognize the extensions. Only the first file ending with .001 was recognized by my video player MPV. What good is it if you can play only one half of the file? Nothing, indeed.
So I did some research and by nature Linux comes with a very handy and small tool called "cat". Most of us have heard about it already and have used it during a lot of tasks. And once again this handy tool has come to help. You can easily join split files with extensions like .001 to .XXX (undefined amount of parts) with a single cat command in the terminal.
How to join split files with cat:
0. Open up a terminal if you're using a graphical environment.
1. Navigate to the place where the split files are stored using the cd command (e.g. cd /home/username/Downloads).
2. Execute the following command:
Code: (Select All)
cat filename.ext.* > filename.ext
Example:
Code: (Select All)
cat online-podcast-recording.mkv.* > online-podcast-recording.mkv
Alternatives are:
Code: (Select All)
cat filename.ext.001 filename.ext.002 filename.ext.XXX > filename.ext
Example:
Code: (Select All)
cat online-podcast-recording.mkv.001 online-podcast-recording.mkv.002 > online-podcast-recording.mkv
Or
Code: (Select All)
cat filename.ext.[0-9][0-9][0-9] > filename.ext
Example:
Code: (Select All)
cat online-podcast-recording.mkv.[0-9][0-9][0-9] > online-podcast-recording.mkv
For the second method it just really depends on how many parts the file has. So you have to include all parts into the command.
3. Now wait a little while. Depending on the overall file size it just takes time to join the size (also pretty much depends on the power of your computer and storage speed).
4. Success . You have the joined file in the same directory where the split files are. You can check the file and if everything is complete you can delete the split files.
I'm aware that this is a very simple guide and probably quite unnecessary but this is one of the things that you might run into when switching main OSs. Just documenting it for the future. And in my humble opinion this is quite cool because you don't even need any additional software or anything else. cat is installed in 100% of all Linux distributions (no matter whether server or desktop version).
That's it folks.