Usage

dgrep is used like many standard Unix commands. The command with arguments is entered at the prompt, and output is sent to STDOUT with error messages directed to STDERR. The search pattern is case-sensitive and can be a single word, or a string in single quotes. You can even supply a Perl-compatible regular expression. You can obtain the Usage below if you type dgrep -h at your shell prompt.

Remember, you can use dgrep for any purpose, not just for searching the EE552 class notes.

Usage:

dgrep [-chld] <pattern> [<directory>]

where:

-c Show only number of times pattern is found in each file

-h This text

-l Show the file names containing pattern

-d Display error messages for unreadable files or directories

pattern Word to search for. This can be entered as

a string or a regular expression between single quotes.

Perl's extended regexen are supported.

directory Node to recursively search for all instances of <pattern>

By default, this is the EE 552 web page

/users/prof/elliott/web-docs/ee552

Output:

Filenames and matched lines are sent to STDOUT.

Error messages are sent to STDERR.