hi,
I am in a weird situation. I have a parent tarball which contains 2 sub tarballs.
The structure is such :
Parent.tar.gz ---- > child1.tar.gz and child2.tar.gz
I need to get the size of the parent tarball without untaring it
I know that the command is
gunzip -c parent.tar.gz | wc -c
However this gives me the sizeof parent tarball with the compressed size of the child tarballs. When I actually check the size of child1.tar.gz with the same command its much bigger than the size returned for the parent.tar.gz with the same command.
Can someone guide me as to how to check recuirsivly for the total size of a tar ball ?