2019-04-21 11:50:48 +08:00

18 lines
870 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="look">look</h1>
<p>显示文件中以指定字符串开头的任意行</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>look命令</strong> 用于显示文件中以指定字符串开头的任意行。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">look(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-a使用另一个字典文件web2该文件也位于/usr/dict目录下
-d只对比英文字母和数字其余一概忽略不予比对
-f忽略字符大小写差别
-t&lt;字尾字符串&gt;:设置字尾字符串。</code></pre>
<h3 id="参数">参数</h3>
<ul>
<li>字符串:指定要查找的字符串;</li>
<li>文件:指定要查找的目标文件。</li>
</ul>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->