Episode #645
Grep, Sort, Uniq

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. We’ll iterate through a few different possibilities before arriving at a solution that is both straightforward and terse. Along the way, we’ll talk about the problem of hammers…

Members only

Log in below or get 48-hour access for $5.

Need more time? See all available plans.