
192
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
-Q[symspec], --no-graph[=symspec]
Don’t print call graph analysis.
-T, --traditional
Print output in BSD style.
-Z[symspec], --no-exec-counts[=symspec]
Don’t print statistics on the number of times each function is
called.
grep
grep [options] pattern [files]
Search one or more files for lines that match a regular expression
pattern. Regular expressions are described in Chapter 7. Exit status
is 0 if any lines match, 1 if none match, and 2 for errors. See also
egrep and fgrep.
Options
-a, --text
Don’t suppress output lines with binary data; treat as text.
-b, --byte-offset
Print the byte offset within the input file before each line of
output.
-c, --count
Print only a count of matched lines. With -v or --revert-match
option, count nonmatching lines.
-d action, --directories=action
Define an action for processing directories. Possible actions
are:
read
Read directories like ordinary files (default).
skip
Skip directories.
recurse
Recursively read all files under each directory. Same as -r.
-e pattern, --regexp=pattern
Search for pattern. Same as specifying a pattern as an argu-
ment, but useful in protecting patterns beginning with -.
-f file, --file=file
Take a list of patterns from file, one per line.
-h, --no-filename
Print matched lines but not filenames (inverse of -l).
-i ...