请输入您要查询的英文单词:

 

单词 grep
释义 DictionarySeeUNIX

grep


grep

(tool, information science) A Unix command forsearching files for lines matching a given regular expression (RE). Named after the qed/ed editorsubcommand "g/re/p", where re stands for a regular expression,to Globally search for the Regular Expression and Print thelines containing matches to it. There are two other variants,fgrep which searches only for fixed strings and egrep whichaccepts 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 systembackup 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.
LegalSeefind

GREP


AcronymDefinition
GREPGlobal Regular Expression Parser (UNIX)
GREPGet Replace Print
GREPGlobal Regular Expression Program
GREPGeneralized Regular Expression Parser
GREPGlobal Regular Expression Print (UNIX)
GREPGlobal Rinderpest Eradication Programme
GREPGroupe de Recherche pour l'Education et la Prospective
GREPGlobal Registered Education Provider
GREPGraphite-Epoxy (materials science)
GREPGreen Parakeet (bird species)
GREPGet Regular Expression Processing (less common)
随便看

 

英语词典包含2567994条英英释义在线翻译词条,基本涵盖了全部常用单词的英英翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2022 Newdu.com All Rights Reserved
更新时间:2025/2/24 11:43:22