grep Pocket Reference (Pocket Reference (O'Reilly)) and over one million other books are available for Amazon Kindle. Learn more
Buy New
$10.54
Qty:1
  • List Price: $12.99
  • Save: $2.45 (19%)
FREE Shipping on orders over $35.
In Stock.
Ships from and sold by Amazon.com.
Gift-wrap available.
Add to Cart
Want it Friday, April 18? Order within and choose One-Day Shipping at checkout. Details
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

grep Pocket Reference (Pocket Reference (O'Reilly)) Paperback

ISBN-13: 978-0596153601 ISBN-10: 0596153600 Edition: 1st

See all 3 formats and editions Hide other formats and editions
Amazon Price New from Used from Collectible from
Kindle
"Please retry"
Paperback
"Please retry"
$10.54
$6.37 $6.35

Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student



Frequently Bought Together

grep Pocket Reference (Pocket Reference (O'Reilly)) + sed and awk Pocket Reference, 2nd Edition + bash Pocket Reference (Pocket Reference (O'Reilly))
Price for all three: $28.75

Buy the selected items together

If you buy a new print edition of this book (or purchased one in the past), you can buy the Kindle edition for only $2.99 (Save 61%). Print edition purchase must be sold by Amazon. Learn more.


Like this book? Find similar titles in the O'Reilly Bookstore.

Product Details

  • Series: Pocket Reference (O'Reilly)
  • Paperback: 86 pages
  • Publisher: O'Reilly Media; 1 edition (February 2, 2009)
  • Language: English
  • ISBN-10: 0596153600
  • ISBN-13: 978-0596153601
  • Product Dimensions: 6.9 x 4.2 x 0.3 inches
  • Shipping Weight: 1.4 ounces (View shipping rates and policies)
  • Average Customer Review: 4.3 out of 5 stars  See all reviews (11 customer reviews)
  • Amazon Best Sellers Rank: #235,245 in Books (See Top 100 in Books)

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.


More About the Author

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

Customer Reviews

4.3 out of 5 stars
5 star
5
4 star
5
3 star
0
2 star
1
1 star
0
See all 11 customer reviews
Lots of good info in a small package.
DJ SILK
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.
Roger
Introduction to Regular Expressions Section 1.4. grep Basics Section 1.5.
calvinnme

Most Helpful Customer Reviews

20 of 20 people found the following review helpful By calvinnme HALL OF FAMETOP 500 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. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
4 of 4 people found the following review helpful By DEEPU on November 23, 2010
Format: Paperback Verified Purchase
It has beyond what you will learn from Man pages of grep. Few examples will surely make you understand the power of grep command.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
4 of 5 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. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
1 of 1 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. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Product Images from Customers

Search
ARRAY(0x9b9d9e94)

What Other Items Do Customers Buy After Viewing This Item?