
windows安装gnu
grep
is a very powerful and useful tool used in Linux and Unix operating systems. It is mainly used to match and print specified text in given text files in different formats. grep
also have subversions like egrep
which will provide extended functionality like regular expressions
. In this tutorial, we will learn how to download, install and use grep
and egrep
for Windows operating systems.
grep
是Linux和Unix操作系统中使用的非常强大且有用的工具。 它主要用于匹配和打印给定文本文件中不同格式的指定文本。 grep
还具有类似egrep
,它将提供诸如regular expressions
类的扩展功能。 在本教程中,我们将学习如何在Windows操作系统上下载,安装和使用grep
和egrep
。
下载GNU Grep (Download GNU Grep)
grep
is a Unix or Linux tools provided as opensource. Hopefully, it is also provided for Windows operating systems and platform by GNU. We can download the grep
setup file from the following page.
grep
是作为开源提供的Unix或Linux工具。 希望它也由GNU提供给Windows操作系统和平台。 我们可以从下一页下载grep
设置文件。
http://gnuwin32.sourceforge.net/packages/grep.htm
http://gnuwin32.sourceforge.net/packages/grep.htm

Or simply we can download from the following link directly. But keep in mind that when new versions have arrived following link will be absolute or old.
或者,我们可以直接从以下链接下载。 但是请记住,当新版本到来时,以下链接将是绝对的或旧的。
http://downloads.sourceforge.net/gnuwin32/grep-2.5.4-setup.exe
http://downloads.sourceforge.net/gnuwin32/grep-2.5.4-setup.exe
安装GNU Grep (Install GNU Grep)
We will start the installation by clicking to the gre-2.5.4-setup.exe
We can see that the current version of the grep we will install is 2.5.4
.
我们将通过单击gre-2.5.4-setup.exe
开始安装。我们可以看到我们将安装的grep的当前版本是2.5.4
。

This may require some Administrative privileges. So we will provide the Admin privileges by click Yes
to the dialog box.
这可能需要一些管理特权。 因此,我们将通过在对话框中单击“ Yes
来提供“管理员”权限。
Below the Setup Start Screen of the GNU Grep
在GNU Grep的“设置开始”屏幕下方

We will accept the license agreement by clicking I accept the agreement
like below.
单击下面的I accept the agreement
协议,我们将接受许可协议。