September 2015
Intermediate to advanced
200 pages
6h 40m
English
| Acknowledgments |
| Introduction |
| About This Book |
| Online Resources |
| 1. | Reading from Files |
| Opening a File |
| Reading from a File |
| Treating Files as Streams |
| Reading Fixed-Width Files |
| Wrapping Up |
| 2. | Processing Standard Input |
| Redirecting Input from Other Processes |
| Example: Extracting URLs |
| Concurrency and Buffering |
| Wrapping Up |
| 3. | Shell One-Liners |
| Arguments to the Ruby Interpreter |
| Prepending and Appending Code |
| Example: Parsing Log Files |
| Wrapping Up |
| 4. | Flexible Filters with ARGF |
| Reading from ARGF as a Stream |
| Modifying Files |
| Manipulating ARGV |
| Wrapping Up |
| 5. | Delimited Data |
| Parsing a TSV |
| Delimited Data and the Command Line |
| The CSV Format |
| Wrapping Up |
| 6. | Scraping HTML |
| The Right Tool for the Job: Nokogiri |
| Searching the Document |
| Working with Elements |
| Exploring ... |
Read now
Unlock full access