For starters I have checked most of the solutions available no
How to untar all .tar.gz with shell-script?
Unzipping multiple zip files in a directory?
I have a directory that has subdirectories with .gz files in them, and would like to extract all into either one folder or just keep them in their folders. Thank you in advance
If I understand your question, you could use something like
DEST=<Destination Folder>
SRC=<Src Folder>
find $SRC -name "*.tar.gz" -or -name "*.tgz" -exec tar xzvvf -C $DEST {} \;
how to do the same with tar xvzf ?
find . -name "*.bz2" | while read filename; do tar -xvzf -C "
dirname "$filename"" "$filename"; done;
doesn't workChange
z
(which is for gzip) toj
(which is for bzip2)tar -xvjf