Writing Utility Scripts with Ruby

Опубликовано: 11 Март 2026
на канале: Brett Codes
3,977
80

Ruby is a really fantastic language for writing general purpose scripts, especially when processing files. I find myself using it regularly for personal needs in addition to the daily needs of my job.

I recently wanted to organize thousands of MP3 files in a folder into subfolders based on the artist and album, so I wrote a little Ruby script to do so. It reminded me how fun it is to do and how Ruby can be quite a bit friendlier to work with than bash for writing little one-off scripts.

So that's what this episode is: organizing a bunch of MP3s with a simple Ruby script and adding some error handling.

Support my screencasts by buying me a coffee: https://www.buymeacoffee.com/brettcha...
View the source from this screencast: https://github.com/brettchalupa/scree...