语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -3,16 +3,16 @@
<h2 id="补充说明">补充说明</h2>
<p><strong>rename命令</strong> 用字符串替换的方式批量改变文件名。</p>
<h3 id="语法">语法</h3>
<pre><code>rename(参数)</code></pre>
<pre><code class="language-bash">rename(参数)</code></pre>
<h3 id="参数">参数</h3>
<pre><code>原字符串:将文件名需要替换的字符串;
<pre><code class="language-bash">原字符串:将文件名需要替换的字符串;
目标字符串:将文件名中含有的原字符替换成目标字符串;
文件:指定要改变文件名的文件列表。</code></pre>
<h3 id="实例">实例</h3>
<p>将main1.c重命名为main.c</p>
<pre><code>rename main1.c main.c main1.c</code></pre>
<pre><code class="language-bash">rename main1.c main.c main1.c</code></pre>
<p><strong>rename支持通配符</strong></p>
<pre><code>? 可替代单个字符
<pre><code class="language-bash">? 可替代单个字符
* 可替代多个字符
[charset] 可替代charset集中的任意单个字符</code></pre>
<p>文件夹中有这些文件foo1, …, foo9, foo10, …, foo278</p>
@@ -22,11 +22,11 @@
<p>如果使用<code>rename foo0 foo foo0[2]*</code>从foo0200到foo0278的所有文件都被重命名为foo200到foo278文件名中的foo0被替换为foo。</p>
<p><strong>rename支持正则表达式</strong></p>
<p>字母的替换</p>
<pre><code>rename &quot;s/AA/aa/&quot; * //把文件名中的AA替换成aa</code></pre>
<pre><code class="language-bash">rename &quot;s/AA/aa/&quot; * //把文件名中的AA替换成aa</code></pre>
<p>修改文件的后缀</p>
<pre><code>rename &quot;s//.html//.php/&quot; * //把.html 后缀的改成 .php后缀</code></pre>
<pre><code class="language-bash">rename &quot;s//.html//.php/&quot; * //把.html 后缀的改成 .php后缀</code></pre>
<p>批量添加文件后缀</p>
<pre><code>rename &quot;s/$//.txt/&quot; * //把所有的文件名都以txt结尾</code></pre>
<pre><code class="language-bash">rename &quot;s/$//.txt/&quot; * //把所有的文件名都以txt结尾</code></pre>
<p>批量删除文件名</p>
<pre><code>rename &quot;s//.txt//&quot; * //把所有以.txt结尾的文件名的.txt删掉</code></pre>
<pre><code class="language-bash">rename &quot;s//.txt//&quot; * //把所有以.txt结尾的文件名的.txt删掉</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->