Hacker News new | ask | show | jobs
by nomorecommas 1594 days ago
Yep, ruby is a natural, pipeline friendly, command line companion out of the box.

https://github.com/learnbyexample/Command-line-text-processi...

https://learnbyexample.github.io/learn_ruby_oneliners/

1 comments

Thanks for the shout out for my Ruby one-liners ebook. The second link (https://learnbyexample.github.io/learn_ruby_oneliners/) is the latest version.
Does ruby come standard on most distros (Eg mainly thinking of RHEL-based here), or you’d have to install it usually?
Usually not, although it's one of the top/main packages supported by Red Hat. `dnf install ruby` will work everywhere.
Don't know about RHEL and I'm not aware of Linux distros that come with Ruby pre-installed. Perl/Python are usually available by default.
Suse/openSuse comes with Ruby pre-installed because Yast, their distinctive system manager tool, is written in Ruby.