I have a bunch of tar files such as a.tar b.tar. I use the following command to merge two tar files :
tar --concatenate --file=a.tar b.tar
However, --concatenate is not support on mac terminal 10.7.4 . What I need to do ?
There's a wonderful notion in the tar realm called a tar-ball. Basically it behaves very much the same way a real tarball would. It's sticky and you can throw stuff at it and it will stick!
So the basic Tar usage is:
now let's see it in an example.
This creates a tarball of the 2 files file1 and file2. As i said earlier you can throw things at the tarball and it will still be fine!
So as you can see the tarball just gets bigger and bigger!
Since you can imagine this to be a rather big ball lying around after some time, perhaps you want to retrieve something from it after a while? Or maybe even delete it?
To extract a file out of the tar ball we have
and to delete it
for a list of other awesome things you can do with the tar tool, head on over to MacTech