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!
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!
Diving deeper into the world of Ruby one-liners, today we'll learn about more special variables, querying the input stream, and... ghoooooost loooooops! 👻