Language features, syntax, and gotchas.
As we continue exploring Ruby one-liner alternatives to UNIX command-line operations, today we tackle a common case: a combination of grepping through multiple files, and collating the results.
Want line terminators in input text to just Go Away? Ruby has a mode for that!
Ruby has tools like -n and -p for filtering and summarizing text right from the command-line. But what about columnar input, like process listings or CSV? Today we'll see how …
Learn how Ruby's -p flag along with a bunch of handy shortcuts can take a script's worth of text filtering and shrink it to a one-liner!
Put on your flip-flops, because today we venture ever deeper into the world of Ruby one-liners!
Diving deeper into the world of Ruby one-liners, today we'll learn about more special variables, querying the input stream, and... ghoooooost loooooops! 👻
Don't spend time mastering UNIX tools if you can use Ruby one-liners instead.
In this rare beginner-oriented episode, we're going to talk about looping constructs in Ruby, starting from the most basic infinite loops, and building up to for/in loops.
Want to cut down on the mental friction of good object design? Use this organic approach to sprouting new classes in Ruby!