grep Pocket Reference

Errata for grep Pocket Reference

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
Printed
Page 25
command example before last paragraph

grep Smith | grep -v hi.txt should be: grep Smith editinginfo | grep -v hi.txt explanation: If the first grep is used without a filename arguemnt, it would use standard input, waiting for you in a new line to insert text that will be processed after pressing Ctrl-D. However this statement is supposed to be a single pipe equivalent of the previous double pipe example: cat editinginfo | grep Smith | grep -v hi.txt

Note from the Author or Editor:
grep Smith | grep -v hi.txt should be: grep Smith editinginfo | grep -v hi.txt

berny68  Jul 29, 2009 
Printed
Page 30
Top of page, 1st example

The example grep -color[=auto] regexp filename should be grep --color[=auto] regexp filename There should be two dashes before color

Note from the Author or Editor:
The example grep -color[=auto] regexp filename should be grep --color[=auto] regexp filename There should be two dashes before color (The heading has it correct, however).

Kevin Eisinger  Aug 13, 2009