Uncompress tar.gz

Discussion in 'Ruby' started by Kless, Oct 18, 2008.

  1. Kless

    Kless Guest

    Which is the best way to uncompress a 'tar.gz' file since Ruby?
     
    Kless, Oct 18, 2008
    #1
    1. Advertisements

  2. Kless

    Adam Penny Guest

    Kless wrote:
    > Which is the best way to uncompress a 'tar.gz' file since Ruby?


    I'm not sure if I'm misunderstanding you, but wouldn't that be

    tar xvzf [filename]?
    --
    Posted via http://www.ruby-forum.com/.
     
    Adam Penny, Oct 18, 2008
    #2
    1. Advertisements

  3. Kless

    Adam Penny Guest

    Adam Penny, Oct 18, 2008
    #3
  4. Kless

    Kless Guest

    On 18 oct, 19:13, Adam Penny <> wrote:
    > Kless wrote:
    > > Which is the best way to uncompress a 'tar.gz' file since Ruby?

    >
    > I'm not sure if I'm misunderstanding you, but wouldn't that be
    >
    > tar xvzf [filename]?


    Better using Ruby:
    ----------------
    tgz_file = Zlib::GzipReader.new( File.open(file, 'rb') )
    Minitar.unpack(tgz_file, 'tgz_file')
    ----------------
     
    Kless, Oct 18, 2008
    #4
  5. Kless

    Kless Guest

    Kless, Oct 19, 2008
    #5
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. chattycow
    Replies:
    4
    Views:
    4,201
    Chris Uppal
    May 16, 2006
  2. chattycow
    Replies:
    11
    Views:
    4,081
    Dale King
    May 22, 2006
  3. =?Utf-8?B?SGFycnkgS2Vjaw==?=

    Compress data on server and uncompress on client?

    =?Utf-8?B?SGFycnkgS2Vjaw==?=, May 22, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    591
  4. Claudio Grondi
    Replies:
    4
    Views:
    803
    Claudio Grondi
    Aug 20, 2005
  5. Replies:
    2
    Views:
    610
    Michael Hoffman
    Apr 24, 2007
  6. Replies:
    3
    Views:
    412
    Graeme Glass
    May 23, 2007
  7. Ray Van Dolson
    Replies:
    0
    Views:
    450
    Ray Van Dolson
    Sep 23, 2009
  8. benoit Guyon
    Replies:
    2
    Views:
    387
    benoit Guyon
    Jul 26, 2005
Loading...