Advertisement
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.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

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,449 ✭✭✭✭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,449 ✭✭✭✭Creamy Goodness


    glad to help. :p


Advertisement