grep Pocket Reference; Using Code Examples; Safari® Books Online; Comments and Questions; Acknowledgments; From Agnieszka Klus; Conceptual Overview; Introduction to Regular Expressions; Metacharacters; POSIX Character Classes; Crafting a Regular Expression; grep Basics; Basic Regular Expressions (grep or grep -G); General Output Control; Output Line Prefix Control; Context Line Control; File and Directory Selection; Other Options; Extended Regular Expressions (egrep or grep -E); Fixed Strings (fgrep or grep -F); Perl-Style Regular Expressions (grep -P); Octal Searching; Character Properties.
PCRE OptionsIntroduction to grep-Relevant Environment Variables; Choosing Between grep Types and Performance Considerations; When to Use grep -F; When to Use grep -P; Performance Implications; Advanced Tips and Tricks with grep; Binary File Searching; Useful Recipes; MAC addresses; Email addresses; U.S.-based phone numbers; Social Security numbers; Credit card numbers; Copyright-protected or confidential material; Searching through.