grep
- 网络命令;正则表达式;查找字符串
-
Using grep in many cases can give you the desired value .
在许多情况下使用grep可以得到需要的值。
-
Note that this is not regular expression matching as used by grep .
注意:这不是grep使用的正则表达式匹配。
-
The grep utility filters input line by line and looks for matches .
grep实用工具逐行过滤输入并寻找匹配。
-
Listing 12 shows some of the basic regular expressions used with the grep command .
清单12显示了与grep命令一起使用的一些基本正则表达式。
-
Here are a few examples of regular expressions using grep as the search tool .
以下是一些使用grep作为搜索工具的正则表达式示例。
-
Using the grep command , you can filter the result and retrieve just the parameters you want
通过使用grep命令,可以过滤结果,只获取想要的参数
-
You can use the grep utility to search the system user attribute defaults in the file .
可以使用grep工具在文件中搜索系统用户属性默认值。
-
The second important note about this example is that you 've performed the grep operation remotely .
关于这个示例,第二项需要说明的重要内容是,您以远程的方式执行了grep操作。
-
For example , a simple grep command can help you find files that match certain search criteria .
例如,一个简单的grep命令能够帮助您找到匹配特定搜索条件的文件。
-
This article helps you better understand the regular expressions used by both grep and sed .
本文将帮助您更好地理解grep和sed使用的正则表达式。
-
A coarse tool like grep will generally find a lot of things that are not of interest .
象grep这样粗糙的工具通常会找到许多没有什么意义的事物。
-
So grep runs through all C files looking for the text pattern that it was given .
因此,grep检查所有C文件,查找指定的文本模式。
-
Just using dmesg | grep is a useful troubleshooting and system discovery tool .
只要使用dmesggrep,您会发现这是一个有用的故障检修和系统发现工具。
-
The fgrep utility is always much faster than grep .
fgrep工具通常速度都比grep更快。
-
Grep can find fixed sequences of characters and can even ignore case with the - I option .
grep可以查找具有固定顺序的字符组合,甚至可以通过使用-i选项来忽略大小写。
-
The second method is to use the-i option , which tells grep to ignore case sensitivity .
第二种方法是使用-i选项,这告诉grep忽略大小写的敏感性。
-
GNU Project Web site : Download a free copy of GNU grep for your operating system .
GNU项目网站:下载用于您的操作系统的免费GNUgrep副本。
-
Next , request the MapReduce job for grep .
接下来,请求用于执行grep的MapReduce作业。
-
For instance , I often use find in combination with grep or Perl to process a large number of files .
例如,我经常将find与grep或者Perl一起使用,以便对大量的文件进行处理。
-
The grep utility has other built-in options to refine searches .
grep实用工具包含其他可优化搜索的内置选项。
-
When combined with the grep command , I can retrieve the conditions in Buffalo .
当与grep命令组合使用时,我可以检索布法罗市的天气状况。
-
My first thought is that I could use simple grep commands to search for the number of quakes per day .
我第一个想到的就是使用简单的grep命令来搜索每天的地震数。
-
The following file , which I 'll name " memo ," illustrates grep 's usage and results .
下面这个文件我称之为“memo”,阐述了grep的用法和结果。
-
In its simplest use , grep prints those lines that contain text that matches a pattern .
grep的最简单应用是打印那些包含与某个模式匹配的文本的行。
-
If you like grep , you won 't find any more AIO servers .
如果您喜欢使用grep,那么您将无法找到更多的AIO服务器。
-
Run lsdev – C | grep fcs to view all Fibre Channel devices on the system .
运行lsdev–Cgrepfcs查看系统中所有FibreChannel设备。
-
So , when should you use find / xargs , and when should you use grep ?
那么,什么时候应该使用find/xargs,什么时候应该使用grep呢?
-
First , run a grep command with the-o option , if your version supports it .
首先,使用-o选项(如果您的版本支持它的话)来运行grep命令。
-
Execute the ps – ef | grep virtual command to list the processes containing the string virtual .
执行ps–efgrepvirtual命令来列出包含虚拟字符串的进程。
-
You might want to search for recently created files , or grep through the last 3 days worth of log files .
也许您想搜索最近创建的文件,或者查找近三天内的日志文件中的字符串。