Easiest way to untar multiple .tar.gz files

Dragan Eror's picture
tar-gz archive

Easiest way to untar multiple .tar.gz files

for i in *.tar.gz; do tar xzvf $i; done

Comments

kotnik's picture

I find this easier

find . -name \*.tar.gz -exec tar xzf '{}' \;
Dragan Eror's picture

Nice :)

Thank you! :)

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.