Splitting and joining files
So I bzipped a 40G file last night. I checked the timestamp and it took about an hour to finish with my 8-core cpu. Since the 40G file is a text file, the resulting file is only 1.4G large. Impressive, I went on to get my morning coffee, happy. Then when I got back, I realized a 1.4G file is still a little too big to transfer it at once. Network failure often happens, and I will need to chop up this file somehow. I did some searches and found that the old school way is to use the split command. I tried that but I got these funny xaa, xab, xac files… ok, fine, I can provide prefixes to them, but still. It’s not intuitive to know how to combine these files back. I suppose a “cat * > file” will do. But what’s the resulting filename? How am I supposed to remember after even just one day? I suppose I can keep a readme file… man, this is last century! ...