Grep command
From NetworkCommands
A command line program available on Linux platforms; used to... create, modify, display or delete
Contents |
Usage Syntax
grep [options] string
Common options include;
- ' -
- ' -
- ' -
- ' -
- ' -
-A x - number of lines before match to show
-B x - after match
-C x - context (so before and after?)
Usage Examples
Usage Notes
string can include regular expressions
Linux Usage Notes
With most Linux or Unix commands;
- Brief help can be displayed using the option/keyword: -h or --help, for example: chmod --help
- A full command manual can be displayed using the man command followed by the command name, for example: man chmod
- Sometimes 'info' pages are used instead of or to provide more information than man pages; for example: info chmod
- Version information can be display using the option/keyword: -v or --version, for example: chmod --version
Availability
Related Commands
Command Equivalents
The Cisco command equivalent is the
The Extreme command equivalent is the
The Linux command equivalent is the
The F5 BigIP command equivalent is the
The Blue Coat SGOS command equivalent is the
The XXX platform command equivalent has the same name:
The closest Nokia IPSO command equivalent is the
Related Articles
Information on Cisco commands
Information on Vyatta commands
Information on Extreme commands
Information on Linux commands
Information on F5 BigIP commands
Information on Blue Coat SGOS commands
Information on Nokia IPSO commands







