I have a tar.gz file that has the following structure when I extract. /dir1/dir2/dir3/many_text_files(.txt)
I would like to change the structure as dir3/many_text_files(.txt)
A simple solution is to extract it and archive again using the -C option.
But, I am wondering if there is any elegant way to do this without extracting and archiving