I’m still learning about Ruby and all of it’s features and instead of reading some boring reference book I decided to just find something I need and build it using Ruby.
WARNING: This has only been tested on Linux, Ubuntu specifically. Potential problems might be caused by the difference in “/” and “”. Yoinks!
Here’s an example of what my files look like:
And after running the script: