Microsoft Store
 

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.

Related Topics:
Command line - Unix - Regular expression - Standard input

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

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.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~