Writing Utility Scripts with Ruby

Опубликовано: 25 Февраль 2022
на канале: Brett Codes
3,727
83

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...


Смотрите видео Writing Utility Scripts with Ruby онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Brett Codes 25 Февраль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,727 раз и оно понравилось 83 людям.