LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   untar more than one file? (https://www.linuxquestions.org/questions/linux-newbie-8/untar-more-than-one-file-128443/)

Sammy2ooo 12-23-2003 02:25 PM

untar more than one file?
 
Hello

i have searched this board and also the man page for this "problem"
how the heck am i able to untar more than one file?? the tar tool itself doesn't contain
any option for that.
assuming we have one folder with lets say 50 tar.gz files
i have tried the following:
tar -xzf * gives me a lot of errors

is the only way to solve this a bash for loop????? that would be really unstylish ;)

any hints??

Sammy2ooo 12-23-2003 02:39 PM

the only way to solve this seems to be:

for i in *.gz; do
>tar -xzf $i
>done

:( whatever....


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