Grep


 
 

grep is a command line utility originally written for use with the Unix operating system. The default behaviour of grep takes a regular expression on the command line, reads standard input or a list of files, and outputs the lines containing matches for the regular expression.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

The name comes from a command in the Unix text editor ed that takes the form:

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

:g/re/p

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

This means "search globally for matches to the regular expression re, and print lines where they are found". There are various command line switches available when using grep that modify the default behaviour.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~


 

Command line: REDIRECT Command-line interface...

Regular expression: A regular expression (abbreviated as regexp, regex, or regxp, with plural forms regexps, regexes, or regexen) is a string that describes or matches a set of strings, according to certain syntax rules. Regular expressions are used by many text editors and utilities to search and manipulate bodies of ...

Standard input: REDIRECT Standard streams...

~ Table of Content ~

Introduction
Variations
Used as a conversational verb
Examples
External links
 
FR: Grep


 

~ Related Subjects ~

Unix (2) - Text editor (1) - Syntax (1) - Perl (1) - Grep (1) - Sed (1) - Regular expression (1) - Command line (1) - Standard input (1) - Set (1) - String (1) -
 

~ Community ~

History Forum
Come and discuss about History, Civilizations, Historical Events and Figures
History Web-Ring
A community of sites, blogs and forums dedicated to History. Do not hesitate to submit your site.