Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox

Grep command

From NetworkCommands


Image:Tux_64x64.png

A command line program available on Linux platforms; used to... create, modify, display or delete

Contents

Image:Vm-power-on-medium.png 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?)

Image:Vm-power-on-medium.png Usage Examples

Image:accessories-text-editor-v2-medium.png Usage Notes

string can include regular expressions

Image:accessories-text-editor-v2-medium.png 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


Image:vm-restart-medium.png Availability

Image:icemon-medium.png Related Commands

Image:object-flip-horizontal-medium.png Command Equivalents

The Cisco command equivalent is the Image:Cisco-logo-small.png

The Extreme command equivalent is the Image:Extreme-logo-small.png

The Linux command equivalent is the Image:Tux-small.png

The F5 BigIP command equivalent is the Image:F5-logo-small.png

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

Image:icemon-medium.png Related Articles

Information on Cisco commands Image:Cisco-logo-small.png

Information on Vyatta commands Image:Vyatta-logo-small.png

Information on Extreme commands Image:Extreme-logo-small.png

Information on Linux commands Image:Tux-small.png

Information on F5 BigIP commands Image:F5-logo-small.png

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands


Image:internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)



Site Toolbox:

Personal tools
This page was last modified on 21 December 2008, at 18:25. - This page has been accessed 19 times. - Disclaimers - About NetworkCommands
Powered by MediaWiki