Search code examples
rubycompressionzipbzip2

ruby - bzip files


I want to compress the files in ruby. for example I have file:

base_1.txt
base_2.txt
base_3.txt

I want these files compressed to base.bz

How can I do it in ruby?


Solution

  • Have you looked at this library:

    https://github.com/brianmario/bzip2-ruby