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
base.bz
How can I do it in ruby?
Have you looked at this library:
https://github.com/brianmario/bzip2-ruby