grep
美
英 
- 網(wǎng)絡(luò)查找字符串;正則表達(dá)式;搜索字符串
例句
A quick grep among the startup scripts reveals that this is part of the hplip service, which provides "HP Linux Imaging and Printing. "
對啟動腳本進(jìn)行grep處理,能夠看出python是hplip的一部分,hplib提供了“HPLinux圖形和打印”服務(wù)。
We were heavily influenced by GREP, a popular string-matching utility on UNIX, which had been created in our research center.
GREP對我們的影響很大,它是UNIX下一個很流行的字串匹配工具。GREP也是我們研究中心開發(fā)的。
One of the best ways to find where the code for a feature you saw in the program resides is to use the grep command.
要找到您在程序中看到的某個特性的代碼的駐留位置,最好的方法之一就是使用grep命令。
Industry, or, at least, the recruiters-who-use-grep, are surely clamoring for Java to be taught.
整個軟件行業(yè),或者說至少是其中那些使用grep命令過濾簡歷的招聘經(jīng)理,確實(shí)是在一直叫嚷,要求學(xué)校使用Java語言教學(xué)。
We initially decided to use the JAR tool to list the contents of the various runtime JARs and grep for the classes in question.
我們最初決定使用JAR工具列出JAR的各種運(yùn)行時間的目錄并查找出現(xiàn)問題的類。
For the programmers who want Perl to be a more functional language, map and grep can satisfy the craving.
對于那些希望Perl成為具有更強(qiáng)函數(shù)性語言的程序員,map和grep可以滿足此需求。
You are advised to do this so alt_disk_copy does not misinterpret the command, as it uses grep to search for the string.
建議您這么做,因為alt_disk_copy使用grep搜索字符串,這么做它就不會誤解命令。
Any time you see a reference to the C: drive or a call to a specific tool (like grep), change the script immediately.
每當(dāng)看到對C:盤的引用,或者看到對特定工具(例如grep)的調(diào)用時,應(yīng)該馬上更改腳本。
The grep utility works by searching through each line of a file (or files) for the first occurrence of a given string.
grep工具的工作方式是對文件的每一行搜索給定字符串的首次出現(xiàn)。
A critical component of this speed is to use the highly refined, efficient algorithms contained within grep.
獲得此速度的關(guān)鍵組件是使用grep內(nèi)包含的高度精確的高效算法。
This is just a tad more convenient than using grep on system header files, but it's less error-prone.
雖然這僅比對系統(tǒng)頭文件使用grep方便一小點(diǎn),但是它更不容易出錯。
Take the output of that command and use grep to get the line that has the string Mem in it.
獲取這個命令的結(jié)果,并使用grep獲取包含字符串Mem的行。
The various options to grep do the work of a handful of small utilities that would have ended up sharing, or duplicating, a lot of code.
grep的各種選項完成許多小實(shí)用程序的工作,如果這些工作都由單獨(dú)的小實(shí)用程序來完成,最終會造成大量共享的、重復(fù)的代碼。
In this example, grep filters the lines, outputting all files with Dec in their modification dates as well as in their names.
在此示例中,grep對行進(jìn)行篩選,并輸出其修改日期和名稱中帶Dec的所有文件。
Examine the same file system with the lsfs command to see what information is similar and different between it and the grep output.
使用lsfs命令檢查文件系統(tǒng),看它與grep輸出結(jié)果之間有何異同。
The grep utility does not support capture, because its purpose it to print lines containing a pattern.
grep實(shí)用工具不支持捕獲,因為其目標(biāo)是打印包含模式的行。
Initially GREP put much effort into establishing the geographical distribution and epidemiology of the disease.
全球根除牛瘟計劃起初集中力量確定該疾病的地理分布和流行病學(xué)。
Regexps are also popularly used in the Perl language, but Perl regexps are different from those you'd build using grep.
regexp在Perl語言中也很常用,但Perlregexp與使用grep構(gòu)建的regexp不同。
The default behavior of grep is to print the file name in which a match was found only if multiple files were specified.
grep的默認(rèn)行為是在指定多個文件的情況下打印從其中找到匹配項的那個文件名稱。
The existing data store search options provided by LDAP do not have the speed and flexibility grep users are accustomed to.
LDAP所提供的現(xiàn)有數(shù)據(jù)存儲搜索選項不具有grep用戶已經(jīng)習(xí)慣了的速度和靈活性。
The second important note about this example is that you've performed the grep operation remotely.
關(guān)于這個示例,第二項需要說明的重要內(nèi)容是,您以遠(yuǎn)程的方式執(zhí)行了grep操作。
For practical purposes, regular expressions need to be handled on an ad hoc basis -- and we have grep for just this purpose.
實(shí)用起見,規(guī)則表達(dá)式需要以特殊方式處理--為此我們使用grep。
Note that this is not regular expression matching as used by grep.
注意:這不是grep使用的正則表達(dá)式匹配。
A basic-but-common grep usage error involves piping the output of cat to grep to search the contents of a single file.
grep的一個常見的基本用法錯誤是通過管道將cat的輸出發(fā)送到grep以搜索單個文件的內(nèi)容。
The launching of GREP was founded on the scientific understanding that the eradication of rinderpest was feasible.
全球根除牛瘟計劃依據(jù)根除牛瘟是可行的科學(xué)認(rèn)識。
The http. conf file can be located usually by performing ps -ef|grep http and identifying the conf file in use.
通常可以通過執(zhí)行ps-ef|grephttp并確定正在使用的conf文件來找到http.conf文件。
The add_device. php script is run with this IP address, with the output filtered to only the line containing the ID using the grep command.
add_device.php腳本就在此IP地址運(yùn)行,其結(jié)果只被那些包含使用grep命令ID的行所過濾。
Grep works exactly like map, except that the elements only "pass through" if the expression or block returns true.
grep與map的工作方式十分類似,只是在表達(dá)式或塊返回true時,元素只是“通過”。
So grep runs through all C files looking for the text pattern that it was given.
因此,grep檢查所有C文件,查找指定的文本模式。
GNU Project Web site: Download a free copy of GNU grep for your operating system.
GNU項目網(wǎng)站:下載用于您的操作系統(tǒng)的免費(fèi)GNUgrep副本。
Some of the newer versions of grep (such as GNU grep) highlights the regexp in color when you use the --color option, as shown in Figure 1.
一些較新版本的grep(如GNUgrep)可在使用--color選項時用顏色突出顯示regexp,如圖1中所示。
In fact, searching a collection of files is so common that grep has its own option to recurse a file system hierarchy.
事實(shí)上,搜索文件集是一項常見的工作,所以grep具有相應(yīng)的選項以遞歸遍歷整個文件系統(tǒng)層次結(jié)構(gòu)。
searches the input files for lines containing a match to a given pattern list.
grep以行為單位搜索那些包含給出模板列表的輸入文件。
grep -l prints the name of the file if a match is found and then stops further matching in that file.
grep-l在發(fā)現(xiàn)一個匹配項之后即打印文件的名稱并停止在該文件中的進(jìn)一步匹配。
For instance, the -w option restricts matches to whole words, so grep -i -w man would exclude Catwoman and Batman, for instance.
例如,-w選項限制于匹配整個單詞,因此grep-i-wman將排除Catwoman和Batman(舉例來說)。
Map and grep evaluate a block or an expression for each element of a list.
Map和grep對列表的每個元素計算塊或表達(dá)式。
This book shows how to design and then implement simple versions of many Unix tools: grep, sort, ed, and the like.
這本書展示了如何設(shè)計然后實(shí)現(xiàn)許多簡單版的Unix工具:grep、sort、ed等。
My first thought is that I could use simple grep commands to search for the number of quakes per day.
我第一個想到的就是使用簡單的grep命令來搜索每天的地震數(shù)。
In its simplest use, grep prints those lines that contain text that matches a pattern.
grep的最簡單應(yīng)用是打印那些包含與某個模式匹配的文本的行。
The shell remains independent; find is a producer, grep acts as a consumer (for find) and as a producer (for wc).
shell仍然是獨(dú)立的;find是生成者,grep作為find的消費(fèi)者和wc的生成者。