Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
1,804,220,119 visitors served.
forum mailing list For webmasters
?
New: Language forums
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

grep

   Also found in: Acronyms, Wikipedia, Hutchinson 0.04 sec.

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 program itself, available in Unix, Linux, Windows and Mac environments.

The following example uses grep to find occurrences of the text "xfiles.lst" within any .CMD files in the default folder. The result shows the file name and the line of text that contains "xfiles.lst." See ed.


  grep command:  grep xfiles.lst *.cmd

  grep result:   File PREPCDPX.CMD
                 copy \stage\code\xfiles.lst
                 File SETSTAGE.CMD
                 copy \stage\code\xfiles.lst


(tool, information science)grep - 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.


How to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit webmaster's page for free fun content.
?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in ? References in periodicals archive
 
Based on our experience, MigraTEC 's product provides the potential for IBM customers to employ the power of 64-bit computing on AIX with less porting effort and greater productivity than conventional techniques like lint, grep or a compiler.
An intelligent interface provides easy access to BBEdit's best of class features including grep pattern matching, search and replace across multiple files, function navigation and syntax coloring for numerous source code languages, FTP and SFTP open and save, AppleScript, Perl and Mac OS X Unix scripting support, glossary support, intra-application automation, and a complete set of HTML tools.
Unix shell commands such as grep and awk run inside Ch shell in the same manner as in BASH and csh shells.
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2009 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. Terms of Use.