Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.

tar question

  • 28-01-2007 07:18PM
    #1
    Closed Accounts Posts: 2,349 ✭✭✭


    Hello, quick question.
    How in the name of god do i untar 30 archives at once. If I go

    tar -xzvf *

    it thinks that everything after the first file is a list of files that i want to untar. Same happens if I type them all one by one besiee each other.

    Pain in the ass.


Comments

  • Registered Users, Registered Users 2 Posts: 26,445 ✭✭✭✭Creamy Goodness


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

    from the top of my head this should work, i'm not near a *nix machine so i can't try to make sure


  • Closed Accounts Posts: 2,349 ✭✭✭nobodythere


    Worked like a charm, thank you sir!


  • Registered Users, Registered Users 2 Posts: 26,445 ✭✭✭✭Creamy Goodness


    glad to help. :p


Advertisement