Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
grep Pocket Reference
1. grep Pocket Reference
Introduction
Conventions Used in This Book
Using Code Examples
SafariĀ® Books Online
Comments and Questions
Acknowledgments
From John Bambenek
From Agnieszka Klus
Conceptual Overview
Introduction to Regular Expressions
Quotation Marks and Regular Expressions
Metacharacters
POSIX Character Classes
Crafting a Regular Expression
grep Basics
Basic Regular Expressions (grep or grep -G)
Match Control
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)
Character Types
Octal Searching
Character Properties
PCRE Options
Introduction to grep-Relevant Environment Variables
Choosing Between grep Types and Performance Considerations
When to Use grep -E
When to Use grep -F
When to Use grep -P
Performance Implications
Advanced Tips and Tricks with grep
Backreferences
Binary File Searching
Useful Recipes
IP addresses
MAC addresses
Email addresses
U.S.-based phone numbers
Social Security numbers
Credit card numbers
Copyright-protected or confidential material
Searching through large numbers of files
Matching strings across multiple lines
References
Index
About the Authors
← Prev
Back
Next →
← Prev
Back
Next →