| Sign In/My Account | View Cart |
| Article: |
Excerpt from Linux Cookbook, Part 1 | |
| Subject: | Some Corrections | |
| Date: | 2004-12-09 23:44:29 | |
| From: | shlomif | |
|
The -v option for grep does not "turn on verbosity". What it does is invert the match and only display things that don't match. -e '^' does not mean exclude the following directory. It specifies a pattern to match, that happen to match at the beginning of the line (hence the "^"). Several -e's specify several patterns.
|
||
Showing messages 1 through 5 of 5.
If the system that you're working on has package-management then it would be easier in the long run to use that system. It's possible to take source files and make your own debs or rpms. This make upgrading, removing etc _much_ easier.
It's definitely going to be quicker than doing a find, outputing a list, then diffing the list.
Brain-dead may be a harsh description, so let's call it "sub-optimal" instead.
What has not been commented on in the follow-ups to shlomif's post, is the (absoloutely correct) point that the explanations given for the flags used with grep are erroneous and misleading. This is especially serious in a book aimed at people who are not veryexperienced with Linux.
I am surprised not only that it slipped past the proofreaders but that O'Reilly have this on their website to promote the book. I had been thinking of getting it, but seeing such a sloppy error has made me reconsider.