Ruby one-liners cookbook: Example based guide for text processing with Ruby from the command line
Sundeep Agarwal
This book will help you learn about various command line options and features that make it possible to write compact Ruby one-liners.