grep


Also found in: Dictionary, Thesaurus, Medical, Legal, Acronyms, Wikipedia.

grep

(tool, information science)
<tool> A Unix command for searching files for lines matching a given regular expression (RE). Named after the qed/ed editor subcommand "g/re/p", where re stands for a regular expression, to Globally search for the Regular Expression and Print the lines containing matches to it. There are two other variants, fgrep which searches only for fixed strings and egrep which accepts extended REs but is usually the fastest of the three.

Used by extension to mean "to look for something by pattern". When browsing through a large set of files, one may speak of "grepping around". "Grep the bulletin board for the system backup schedule, would you?" See also vgrep.

grep

(Global Regular Expression and Print) A Unix pattern matching utility that searches files for a string of text and outputs the line that contains the pattern. Grep came from ed, a Unix text editor, in which the command g/re/p meant "display all text in the file that matches this." That single function became a utility itself, available on all major platforms today. This is an example of the rich family of command line functions built into Unix long before Windows

The following real life example used grep to find occurrences of the text "xfiles.lst" within any .CMD files in the default folder. The results show the matching files and text. See Unix.


Grep Windows Example
The command grep "xfiles.lst" *.cmd looks for CMD files that contain the text xfiles.lst. Grep found NEWXMLM.CMD and WHATSNEW.CMD matching the text string.
References in periodicals archive ?
Buc's Mayor, Jan Karko, was on vacation and could not answer any questions.Four companies connected to Elios, namely E-E LED Lighting, Grep Slovakia, Elios Slovakia and Infralux, are still active and, with the exception of Infralux, they are increasing sales and profits.
Now that the upgrade is complete, Grep Tech Pte Ltd will be focusing on venturing deeper into the South East Asian region in the new year with seeking local companies and forging partnerships and a network of distributorship to reach end users while the company focuses on further product development.
For WordCount and TeraSort, the localization rate of the fair and IOAware scheduling algorithms were approximately 1% different, whereas for Grep, the data localization rate of the fair scheduling algorithm was more than that of IOAware.
GREP is developing a portfolio of rare earth element (REE) projects in the Paatasuq area in Greenland.
[myuid@mydeskmyuid]$ grep -r 3333 /etc/xinetd.d/* [myuid@mydeskmyuid]$ Once again, no output means no such port is declared.
(2.) On peut se faire une idee de l'ampleur du mouvement avec la liste de quelques unes des instances les plus actives: les laboratoires du CNRS Langage, langues et cultures d'Afrique noite (LLACAN), depuis 1994, et Langues, musiques, societes (LMS), depuis 2000; le Groupe de Recherche en EthnoPoetique (GREP), base a l'Universite de Paris Vll-Diderot et a I'EHESS (voir Calame, Dupont et ai.
BANKING AND CREDIT NEWS-22 July 2010-Nova Ljubljanska Banka part of Grep EUR115m loan deal(C)1994-2010 M2 COMMUNICATIONS http://www.m2.com
Organizations once leveraged tools like Perl, grep, SED, and awk to search through audit data for specific, known malicious entries in the past.
The same data for this manufacturing resource--DNC machine (and for any other machine, robotor manufacturing resource) can be also acquired by using the commandscat, grep and wc for the main audit file.
Together these findings contribute to a developing organisational model for the delivery of interdisciplinary research-led GREP. (Contains 1 footnote.) [For the full proceedings, "Research-Teaching Linkages: Practice and Policy.
Por meio desse interpretador, temos acesso as facilidades oferecidas por poderosas ferramentas implementadas em UNIX, como os programas grep, awk (11) e sed, para manipulacao de dados de textos.