LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   untar a list of tar files? (https://www.linuxquestions.org/questions/linux-general-1/untar-a-list-of-tar-files-854453/)

volt220 01-05-2011 04:36 PM

untar a list of tar files?
 
Hi i try to untar a bunch of files located in different folders, with folder deep unkown.

Found an old post about this matter but the suggestion extracts all files in the same folder (your current).
I wan't to extract files to the same folder as the tar file.

The solution from the old post (extracts all files to current folder)
find . -name "*.tar" -exec tar xvf {} \;

The old post:
http://www.linuxquestions.org/questi...-files-380284/

colucix 01-05-2011 04:43 PM

Code:

find . -name \*.tar -execdir tar xvf {} \;
Welcome to LinuxQuestions! :)


All times are GMT -5. The time now is 10:28 AM.