⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 grep.html

📁 Linux From Scratch的中文指导,学习LINUX很有用
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=gb2312" />
    <title>
      5.20.&nbsp;Grep-2.5.1a
    </title>
    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.68.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print" />
  </head>
  <body id="lfs" class="6.1">
    <div class="navheader">
      <div class="headertitles">
        <h4>
          Linux From Scratch - Version 6.1
        </h4>
        <h3>
          Chapter&nbsp;5.&nbsp;构建临时编译环境
        </h3>
      </div>
      <ul class="headerlinks">
        <li class="prev">
          <a accesskey="p" href="make.html" title="Make-3.80">后退</a>
          <p>
            Make-3.80
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="sed.html" title="Sed-4.1.4">前进</a>
          <p>
            Sed-4.1.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter05.html" title="Chapter&nbsp;5.&nbsp;构建临时编译环境">上一级</a>.
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>
        </li>
      </ul>
    </div>
    <div class="wrap" lang="zh_cn" xml:lang="zh_cn">
      <div class="titlepage">
        <h1 class="sect1">
          5.20. Grep-2.5.1a
        </h1>
      </div>
      <div class="package" lang="zh_cn" xml:lang="zh_cn">
        <p>Grep 可以搜索并打印出文件中符合指定匹配模式的行。
        </p>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong><span class="segtitle">预计编译时间:</span></strong> <span class="seg">0.1 SBU</span>
            </div>
            <div class="seg">
              <strong><span class="segtitle">所需磁盘空间:</span></strong> <span class="seg">4.5 MB</span>
            </div>
          </div>
        </div>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong><span class="segtitle">安装依赖于:</span></strong> <span class="seg">Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Make, Sed, Texinfo</span>
            </div>
          </div>
        </div>
      </div>
      <div class="installation" lang="zh_cn" xml:lang="zh_cn">
        <div class="titlepage">
          <h2 class="sect2">
            5.20.1. 安装 Grep
          </h2>
        </div>
        <p>准备编译 Grep:
        </p>
        <pre class="userinput"><kbd class="command">./configure --prefix=/tools \
    --disable-perl-regexp</kbd></pre>
        <p>配置选项的含义:
        </p>
        <div class="variablelist">
          <dl>
            <dt>
              <span class="term"><em class="parameter"><tt>--disable-perl-regexp</tt></em></span>
            </dt>
            <dd>
              <p>这个选项确保 <span><strong class="command">grep</strong></span> 程序不连接可能在宿主系统上存在的 PCRE(Perl 兼容正则表达式)库,因为进入 <span><strong class="command">chroot</strong></span> 环境后,它就不能使用了。
              </p>
            </dd>
          </dl>
        </div>
        <p>编译软件包:
        </p>
        <pre class="userinput"><kbd class="command">make</kbd></pre>
        <p>要测试结果,请运行: <strong class="userinput"><tt>make check</tt></strong>
        </p>
        <p>安装软件包:
        </p>
        <pre class="userinput"><kbd class="command">make install</kbd></pre>
      </div>
      <div class="content" lang="zh_cn" xml:lang="zh_cn">
        <p>关于这个软件包的详细资料位于 <a href="../chapter06/grep.html#contents-grep" title="6.44.2.&nbsp;Contents of Grep">Section&nbsp;6.44.2, &ldquo;Contents of Grep.&rdquo;</a>
        </p>
      </div>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="make.html" title="Make-3.80">后退</a>
          <p>
            Make-3.80
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="sed.html" title="Sed-4.1.4">前进</a>
          <p>
            Sed-4.1.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter05.html" title="Chapter&nbsp;5.&nbsp;构建临时编译环境">上一级</a>.
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>.
        </li>
      </ul>
    </div>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -