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 ?
Business owners and marketing professionals who would like to find out more developing a solid marketing strategy with the use of GT Notify SMS Notification System can attend one of the free monthly business seminars hosted by Grep Tech Pte Ltd.
When we submit WordCount, Grep, and then TeraSort, the CPU utilization peaks when the TaskTracker performs CPU-bound tasks, whereas when the TaskTracker performs IO-bound tasks, the CPU utilization is relatively low.
14) O uso do grep e mais vantajoso tambem porque o aplicamos diretamente sobre o arquivo do corpus, ao passo que, em Python, temos de explicitamente abrir e fechar esse arquivo.
The FTP file contents can be filtered to eliminate both authentication and control packets using a simple grep command.
Only this time the grep command filters out those words where "ing" occurs at the end of the line.
grep" is an acronym for "globbing regular expressions", where "globbing" means searching recursively through folders, and "regular expressions" or "regexes" are named after the mathematical theory of the same name which established the syntax for grep expressions.
The benchmarks used are cmp, grep, wc, Pi, Sieve, and compress.
Modifying grep was slightly more involved, since it operates in a line-oriented manner.
Among the proprietary product the NBA is offering to retailers that use the GREP are personalized jerseys and the Logoman collection -- a line of NBA-branded sportswear aimed at an older, more sophisticated customer.
In order to verify conditions, a RSP uses standard UNIX utilities such as grep or special condition-checking programs from the W3QS Condition Programs Library.
Examples of information retrieval systems include electronic library catalogs, the grep string-matching tool in Unix, and search engines for the World Wide Web such as Alta Vista.
Calls MaxVar queens 84 150 4 4 38 (8) heapsort 99 173 2 1 72 (24) nsieve 115 192 2 2 40 (18) cat 240 377 5 4 61 (15) calendar 352 731 10 14 53 (10) getopt 395 739 5 6 80 (12) linpack 564 686 12 30 140 (17) diff 818 899 12 33 211 (41) patch 753 1316 14 13 141 (38) tar 1214 1451 27 68 182 (49) gzip 1245 2495 37 97 173 (48) grep 1488 2906 32 72 127 (29) sort 1528 3554 35 145 151 (19) dc 1576 3298 67 230 91 (19)