the command grep -i -E '(\b(of|the)\W+){2,}' test.txt produces
命令grep -i -E'(\b(of|the)\W+){2,}'test.txt将生成
Run grep -i community /etc/snmpdv3.conf | grep public and ensure that there is an uncommented line similar to COMMUNITY public public noAuthNoPriv 0.0.0.0 0.0.0.0.
运行grep -icommunity /etc/snmpdv3.conf | greppublic,确保有一个与 COMMUNITY public publicnoAuthNoPriv 0.0.0.0 0.0.0.0相似的非注释行。
For instance, I often use find in combination with grep or Perl to process a large number of files.
例如,我经常将find与grep或者Perl一起使用,以便对大量的文件进行处理。
To correct that, I added an extra grep call.
为了纠正那一点,我添加了一个额外的grep调用。
My first thought is that I could use simple grep commands to search for the number of quakes per day.
我第一个想到的就是使用简单的grep命令来搜索每天的地震数。
I won't even begin to go into the awesome power that is grep, but in its simplest form it can be used, like above, to quickly and easily filter a program's output.
我无意深入阐述grep的强大功能,只说一些其可用的如上所示的简单形式,例如简单地过滤程序的输出结果。
When combined with the grep command, I can retrieve the conditions in Buffalo.
当与grep命令组合使用时,我可以检索布法罗市的天气状况。
The second method is to use the -i option, which tells grep to ignore case sensitivity.
第二种方法是使用-i选项,这告诉grep忽略大小写的敏感性。
Run the instfix -i | grep _sp command to determine whether any SP has missing filesets.
运行instfix - i |grep _ SP命令确定SP是否丢了一些失文件集。
Grep can find fixed sequences of characters and can even ignore case with the -i option.
grep可以查找具有固定顺序的字符组合,甚至可以通过使用- i选项来忽略大小写。
Run the instfix -i | grep ML command to determine whether any TL has missing filesets.
运行instfix—i |grepML命令确定TL是否丢失了一些文件集。
Listing 5 shows a Linux system where an Apache log has accidentally been deleted, and I am using the grep tool to find out if anyone has it open.
清单5显示了一个Linux系统,其中意外地删除了Apache日志,我正使用grep工具查找是否有人打开了该文件。
Listing 5 shows a Linux system where an Apache log has accidentally been deleted, and I am using the grep tool to find out if anyone has it open.
清单5显示了一个Linux系统,其中意外地删除了Apache日志,我正使用grep工具查找是否有人打开了该文件。
应用推荐