Automotive Holiday Deals Up to 50% Off Select Books Shop Men's Athletic Shoes Learn more nav_sap_SWP_6M_fly_beacon Black Friday egg_2015 All-New Amazon Fire TV Luxury Beauty Gifts for Her Amazon Gift Card Offer cm15 cm15 cm15 $30 Off Amazon Echo $30 Off Fire HD 6 Kindle Cyber Monday Deals Classics and Essentials in CDs & Vinyl Outdoor Deals on HTL

Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.

  • Apple
  • Android
  • Windows Phone
  • Android

To get the free app, enter your email address or mobile phone number.

Digital List Price: $9.99
Kindle Price: $5.99

Save $7.00 (54%)

These promotions will be applied to this item:

Some promotions may be combined; others are not eligible to be combined with other offers. For details, please see the Terms & Conditions associated with these promotions.

Deliver to your Kindle or other device

Deliver to your Kindle or other device

Flip to back Flip to front
Audible Narration Playing... Paused   You are listening to a sample of the Audible narration for this Kindle book.
Learn more

grep Pocket Reference (Pocket Reference (O'Reilly)) Kindle Edition

18 customer reviews

See all 2 formats and editions Hide other formats and editions
New from Used from
"Please retry"

Length: 86 pages Matchbook Price: $2.99 What's this?
For thousands of qualifying books, your past, present, and future print-edition purchases now lets you buy the Kindle edition for $2.99 or less. (Textbooks available for $9.99 or less.)
  • Thousands of books are eligible, including current and former best sellers.
  • Look for the Kindle MatchBook icon on print and Kindle book detail pages of qualifying books. You can also see more Kindle MatchBook titles here or look up all of your Kindle MatchBook titles here.
  • Read the Kindle edition on any Kindle device or with a free Kindle Reading App.
  • Print edition must be purchased new and sold by
  • Gifting of the Kindle edition at the Kindle MatchBook price is not available.
Learn more about Kindle MatchBook.

Hero Quick Promo
Holiday Deals in Kindle Books
Save up to 85% on more than 1,000 Kindle Books. These deals are valid until November 30, 2015. Learn more

Editorial Reviews

Book Description

A quick pocket reference for a utility every Unix user needs.

About the Author

John Bambenek is a programmer and teacher with over ten years of experience. His work at the Internet Storm Center and the University of Illinois, as well as his contributions to SANS information management courses, will help him promote this book and give him a sound base from which to write.

Agnieszka Klus was born in Rzeszow, Poland and came here as a child. She lives in the northwest suburb of Chicago, but considers herself a Chicagoan. She is currently trying to get her Masters in Accountancy at the University of Illinois at Urbana-Champaign, and also works as a system administrator at the Coordinated Science Laboratory.

Product Details

  • File Size: 235 KB
  • Print Length: 86 pages
  • Simultaneous Device Usage: Unlimited
  • Publisher: O'Reilly Media; 1 edition (January 14, 2009)
  • Publication Date: January 14, 2009
  • Sold by: Amazon Digital Services, Inc.
  • Language: English
  • ASIN: B0026OR2JU
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Lending: Not Enabled
  • Enhanced Typesetting: Not Enabled
  • Amazon Best Sellers Rank: #388,701 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images or tell us about a lower price?

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

Most Helpful Customer Reviews

21 of 21 people found the following review helpful By calvinnme HALL OF FAMETOP 1000 REVIEWERVINE VOICE on February 7, 2009
Format: Paperback Verified Purchase
This little book is everything a pocket reference should be. grep and egrep are not hard to use, but there are quite a few valid combinations of options, and this book pretty much covers them all. If you want to find expressions in one or more files, this is the tool to use. It's easy to forget everything available, so this book puts everything in one place for you. There's even a section on an option of grep that is only valid with PERL, so you may or may not have access to it. The following is the table of contents since it is not listed in the product description. One word of warning - if you don't already understand regular expressions this book won't teach it to you. It is indeed just a quick reference for concepts you should already know. The advanced tips and tricks section is the only exception to that rule and is itself worth the price of admission.

Chapter 1. grep Pocket Reference
Section 1.1. Introduction
Section 1.2. Conceptual Overview
Section 1.3. Introduction to Regular Expressions
Section 1.4. grep Basics
Section 1.5. Basic Regular Expressions (grep or grep -G)
Section 1.6. Extended Regular Expressions (egrep or grep -E)
Section 1.7. Fixed Strings (fgrep or grep -F)
Section 1.8. Perl-Style Regular Expressions (grep -P)
Section 1.9. Introduction to grep-Relevant Environment Variables
Section 1.10. Choosing Between grep Types and Performance Considerations
Section 1.11. Advanced Tips and Tricks with grep
Section 1.12. References
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
8 of 9 people found the following review helpful By joepd on July 3, 2012
Format: Paperback
grep is such a tool that one uses continually every unix console session. Great to spend an evening reading up about that tool, just to get introduced to the more advanced uses. 75 pages would be plenty to tell something nice, not deal extensively with regular expressions. So quite some space to tell something new, right?

Wrong. Regular expressions keep on being the central focus of this book, despite being uncapable of telling how they really work. The examples of Advanced Use are how to match lines with IP-addresses and ISBN-numbers, AKA regular expressions. No word on how to make the use of grep itself nicer.

* On page 9., option -e is used without explaining what it does.
* Page 25. It seems like they want to show how to avoid a pipe from one grep to another, but they just show got rid of the cat statement. The text does not make sense, and there is no pointer to where to look in the book to get performance increase.
* p.60: '/' really should have been a '\'.
* In the discussion of command line options, nor of the environment variables, an explanation of the practical difference between 'auto' and 'always' has been omitted. I would have hoped for a discussion on how to use pagers like less with color support (No sweat to figure out yourself: exporting GREP_OPTIONS="--color always" and LESS="-R" works for me to retain the color marks).
* As the final words, the authors warn about using grep on a multitude of files, as this could run into the limits of the system. Of course, a combination of find and xargs is a more subtle and correct one, which does not happen to run into this limit. The authors suggest that one should rebuild the kernel to overcome this limitation.
Read more ›
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
3 of 3 people found the following review helpful By Roger on November 16, 2011
Format: Paperback
I needed a book that would teach me REGEX and how better to use grep/fgrep, but without having to learn PERL and JAVA. (ie. Master Regular Expressions contains over half the data relevant to other languages.)

This "grep Pocket Reference" did a good job of explaining the grep options in tandem with the it's Manual Page. Although few, I thought the examples near the end were great. However, the examples seemed to be themed on personal private data searching rather then something more relevant to a computer users -- but they could easily be converted.

This EBook needs some corrections (a reprint including errata?) as it contains some grammar or run-on sentences which conflict and provide incorrect data. Also, there's a sentence in the book stating, in effect, it's OK or legal to use fgrep to search other peoples EMail. I'm no lawyer, but this doesn't sound correct. Again, those few sentences probably need a little rewording.

All in all, besides the fact it needed a good proof reading -- the book taught me what I needed to learn about grep as it's manual page lacks examples and a certain amount of clarity. (Currently, grep's manual page is written like a specification rather then something focused towards a user, omitting example usage.)

(There is a small chapter on Perl REGEX. ie. --perl-regexp)

If you need a book to learn REGEX and have a little trouble with the GREP Manual Page, or don't want to read a huge book like Mastering REGEX, get this book for learning REGEX (aka BRE/ERE).

Also noteworthy, the MOBI formated EBook version of this "grep Pocket Reference" is the first readable MOBI EBook I've been able to read so far on my Kindle DXG. This book had few TABLE TAGS (or computer technical drawings/coding).
Read more ›
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse


There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
First post:
Prompts for sign-in