Cover Page
Title Page
Copyright Page
Contents
Figure and Tables
Acknowledgments
Introduction
Mac
Windows
Meet the Command Line
Two Powerful Symbols
Direct Output to a File (Greater than Symbol)
Direct Output to Another Program (Pipe Symbol)
Command Substitution
Regular Expressions—The Swiss Army Knife for Data
Literal Characters
Wildcard Characters
Grouping
Scripting
Chapter 3. Understanding Formats, by David Forero
Chapter 4. Simplify Complicated Problems
Isolating Specific Data Elements
Converting Data into Formats That Are Easier to Work With
Chapter 5. Delimited Text
Commas and Quotation Marks in CSV Files
Multiline Fields in CSV Files
Multivalued Fields in Delimited Files
Chapter 6. XML
So What Is XML, Really?
What Makes XML So Useful?
Why Is XML So Easy?
DOM (Document Object Model)
XPath
XSLT (eXtensible Stylesheet Language Transformations)
Working with Large XML Files
Working with Complex XML Files
XmlStarlet
Installing XmlStarlet
Converting XML Documents
Chapter 7. JSON (JavaScript Object Notation)
Chapter 8. Scripting
Variables
Arguments
Conditional Execution
Loops
Locating Files That Contain Particular Data
Working with Internal Metadata
Working with APIs
Combining Data from Different Sources
Other Tasks
Chapter 10. Conclusions
One-Line Wonders
Identify All Files in Current Directories and Subdirectories That Contain a Value
View Lines 4369–4374 of a File
Count Records Containing an Expression
Iterate through Every Item in Parameter List
Use Foreign Character Sets in a Terminal Window
Convert List of Names from Direct Order to Indirect Order
Remove Newline Characters from a File
Convert Comma Delimited File Where Some Values Are Quoted and Some Values Are Not to Tab Delimited
Find the Most Common Values in the Second Field of a File
Delete Elements, Attributes, or Values Based on XPath Expressions
Pretty Print XML Document
Glossary
Symbols That Perform Important Tasks
Useful Commands
Regular Expression Cheat Sheet
Index