grep

grep

 英

  • 网络查找字符串;正则表达式;搜索字符串

例句

A quick grep among the startup scripts reveals that this is part of the hplip service, which provides "HP Linux Imaging and Printing. "

启动脚本进行grep处理能够看出pythonhplip一部分hplib提供HPLinux图形打印服务

We were heavily influenced by GREP, a popular string-matching utility on UNIX, which had been created in our research center.

GREP我们影响很大UNIX一个流行匹配工具GREP也是我们研究中心开发

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.

整个软件行业或者至少其中那些使用grep命令过滤简历招聘经理确实一直叫嚷要求学校使用Java语言教学

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各种运行时间目录查找出现问题

For the programmers who want Perl to be a more functional language, map and grep can satisfy the craving.

对于那些希望Perl成为具有函数性语言程序员mapgrep可以满足需求

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.

每当看到C引用或者看到特定工具例如grep调用应该马上更改脚本

The grep utility works by searching through each line of a file (or files) for the first occurrence of a given string.

grep工具工作方式文件每一搜索给定字符串首次出现

A critical component of this speed is to use the highly refined, efficient algorithms contained within grep.

获得速度关键组件使用grep包含高度精确高效算法

This is just a tad more convenient than using grep on system header files, but it's less error-prone.

虽然系统文件使用grep方便但是容易出错

Take the output of that command and use grep to get the line that has the string Mem in it.

获取这个命令结果使用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各种选项完成许多实用程序工作如果这些工作单独实用程序完成最终造成大量共享重复代码

In this example, grep filters the lines, outputting all files with Dec in their modification dates as well as in their names.

在此示例grep进行筛选输出修改日期名称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命令检查文件系统grep输出结果之间异同

The grep utility does not support capture, because its purpose it to print lines containing a pattern.

grep实用工具支持捕获因为目标打印包含模式

Initially GREP put much effort into establishing the geographical distribution and epidemiology of the disease.

全球根除牛瘟计划起初集中力量确定疾病地理分布流行病学

Regexps are also popularly used in the Perl language, but Perl regexps are different from those you'd build using grep.

regexpPerl语言常用Perlregexp使用grep构建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默认行为指定多个文件情况打印其中找到匹配项那个文件名称

The existing data store search options provided by LDAP do not have the speed and flexibility grep users are accustomed to.

LDAP提供现有数据存储搜索选项具有grep用户已经习惯速度灵活性

The second important note about this example is that you've performed the grep operation remotely.

关于这个示例第二需要说明重要内容远程方式执行grep操作

For practical purposes, regular expressions need to be handled on an ad hoc basis -- and we have grep for just this purpose.

实用起见规则表达需要特殊方式处理--为此我们使用grep

Note that this is not regular expression matching as used by grep.

注意不是grep使用表达式匹配

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输出发送grep搜索单个文件内容

The launching of GREP was founded on the scientific understanding that the eradication of rinderpest was feasible.

全球根除牛瘟计划依据根除牛瘟可行科学认识

The http. conf file can be located usually by performing ps -ef|grep http and identifying the conf file in use.

通常可以通过执行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地址运行结果那些包含使用grep命令ID过滤

Grep works exactly like map, except that the elements only "pass through" if the expression or block returns true.

grepmap工作方式十分类似只是表达式返回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项目网站下载用于操作系统免费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.

一些较新版本grepGNUgrep使用--color选项颜色突出显示regexp1

In fact, searching a collection of files is so common that grep has its own option to recurse a file system hierarchy.

事实上搜索文件常见工作所以grep具有相应选项遍历整个文件系统层次结构

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发现一个匹配之后打印文件名称停止文件进一步匹配

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排除CatwomanBatman举例来说)。

Map and grep evaluate a block or an expression for each element of a list.

Mapgrep列表每个元素计算表达式

This book shows how to design and then implement simple versions of many Unix tools: grep, sort, ed, and the like.

展示如何设计然后实现许多简单Unix工具grepsorted

My first thought is that I could use simple grep commands to search for the number of quakes per day.

第一想到就是使用简单grep命令搜索每天地震

In its simplest use, grep prints those lines that contain text that matches a pattern.

grep简单应用打印那些包含某个模式匹配文本

The shell remains independent; find is a producer, grep acts as a consumer (for find) and as a producer (for wc).

shell仍然独立find生成grep作为find消费者wc生成

热门查询