I can't find any good clues here or elsewhere on the web, so I think I'm better off asking some professionals about this.
I'm having trouble putting together a script that can join a lot of files for me. I can manually type in all commands to that script (paste in and change numbering), but that's really tiring. My hands are sore after typing a few hundred of these.
The files are split rar-files that has to be joined.
It looks like this:
B74_ABC_001.rar.001 B74_ABC_001.rar.002 B74_ABC_001.rar.003
MX3_EFG_020.rar.001 MX3_EFG_020.rar.002 MX3_EFG_020.rar.003
MX3_EFG_021.rar.001 MX3_EFG_021.rar.002 MX3_EFG_021.rar.003
The length of the split varies from 2 files up to about 500.
Right now I type this into bash (with a lot of help from autocomplete) for a manual job:
Code: Select all
cat B74_ABC_001.rar.* >> B74_ABC_001.rar
Is there any simple way to accomplish this? A universal script to handle examples like these would be perfect.
Thanks in advance.