<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8446814529424279240</id><updated>2019-11-05T07:40:22.699+08:00</updated><category term="CCNA 認證"/><category term="園藝"/><title type='text'>叙然茶樓-小昭&amp;小君的生活筆記</title><subtitle type='html'>Gerry&amp;#39;s &amp;amp; Tiffany&amp;#39;s blog home 叙然茶樓在1920~1950年代位於廣東河源太平路</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-4601682549432225766</id><published>2019-11-05T07:40:00.000+08:00</published><updated>2019-11-05T07:40:22.620+08:00</updated><title type='text'>eval用法   eval SAENameAx=\${SAENameA$(($i+1))[j]}</title><content type='html'>&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #000099; font-size: large;&quot;&gt;eval：&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;語法&lt;/span&gt;：&lt;table bgcolor=&quot;#000000&quot; border=&quot;&quot; cols=&quot;1&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: white;&quot;&gt;[test @test test]#&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: yellow;&quot;&gt;eval variable&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;color: #ffffcc;&quot;&gt;&lt;span&gt;例題：&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: white;&quot;&gt;[test @test test]#&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: yellow;&quot;&gt;days=365&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: white;&quot;&gt;[test @test test]#&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: yellow;&quot;&gt;year=days&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: white;&quot;&gt;[test @test test]#&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: yellow;&quot;&gt;echo \$$year&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: white;&quot;&gt;$days&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ff9900;&quot;&gt;&amp;nbsp;&amp;lt;==第一個 $ 被 \ 改變成為一般字元，而 \$ 後面接的 $year 就成為 days 啦！&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: white;&quot;&gt;[test @test test]#&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: yellow;&quot;&gt;eval echo \$$year&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;span&gt;365&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;color: #ff9900;&quot;&gt;&lt;span&gt;加上 eval 之後， \$$year 變成的 $days 的『變數內容』會顯現出來喔！&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;這個指令也是頗有趣的！他主要是用來做為變數的『疊代』用的！以上面的例子來看，起先， \$$year 會變成為 $days ，而這個 $days 其實是一般字元喔！並不是變數！不過，加上了 eval 之後，這個字串就會被變成變數內容咯！所以說， eval 是用來做為『二次疊代』的功能的！&lt;/ul&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;上述資料來自&amp;nbsp;&lt;a href=&quot;http://linux.vbird.org/linux_basic/0320bash/0320bash.php&quot;&gt;http://linux.vbird.org/linux_basic/0320bash/0320bash.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. ~$ &lt;span style=&quot;background-color: yellow;&quot;&gt;name=&lt;span style=&quot;color: red;&quot;&gt;yawu&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~$ echo &lt;span style=&quot;background-color: cyan;&quot;&gt;$name&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~$ &lt;span style=&quot;color: red;&quot;&gt;yawu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. ~$ &lt;span style=&quot;background-color: yellow;&quot;&gt;yawu=&lt;span style=&quot;color: red;&quot;&gt;vmd&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~$ echo&lt;span style=&quot;background-color: cyan;&quot;&gt; $name&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~$ &lt;span style=&quot;color: red;&quot;&gt;yawu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~$ eval echo&lt;span style=&quot;background-color: cyan;&quot;&gt; \$$name&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~$ &lt;span style=&quot;color: red;&quot;&gt;vmd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. ~$ eval echo &lt;span style=&quot;background-color: cyan;&quot;&gt;&quot;$&quot;&quot;$name&quot;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~$ &lt;span style=&quot;color: red;&quot;&gt;vmd&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~$ eval echo&lt;span style=&quot;background-color: cyan;&quot;&gt; &#39;${&#39;&quot;$name&quot;&#39;}&#39;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~$ &lt;span style=&quot;color: red;&quot;&gt;vmd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;链接：https://www.jianshu.com/p/284ae3a0244e&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;for ((i=0; i &amp;lt; 2; i++)); do&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for ((j=0; j &amp;lt; 3; j++)); do&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;# ii=&lt;span style=&quot;color: red;&quot;&gt;$(($i+1))&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # &lt;span style=&quot;background-color: cyan;&quot;&gt;eval SAENameAx=\${SAENameA&lt;span style=&quot;color: red;&quot;&gt;${ii}&lt;/span&gt;[j]}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;eval SAENameAx=\${SAENameA&lt;span style=&quot;color: red;&quot;&gt;$(($i+1))&lt;/span&gt;[j]}&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;SAENameAx=&quot;&lt;span style=&quot;color: red;&quot;&gt;$SAENameAx&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;PathFileName=$(echo $Path/${SAESide[i]}/${SAEDir[j]}/&lt;span style=&quot;color: red;&quot;&gt;${SAENameAx}&lt;/span&gt;&quot;-&quot;$SearchDATE&quot;-task.txt&quot;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;PathFileName= &quot;$PathFileName&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;The_number_of_lines_in_a_file=$(cat $PathFileName |grep -n &#39;HKT 2019&#39;| wc -l)&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;echo &quot;The number of lines in a file=&quot;$The_number_of_lines_in_a_file&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cat ${PathFileName} |grep -n &#39;HKT 2019&#39; &amp;gt; $Path/tempA_${i}_${j}.txt&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for ((k=1; k &amp;lt; $The_number_of_lines_in_a_file; k++)); do&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; Paragraph_begin=$(cat $Path/tempA_${i}_${j}.txt | sed -n &quot;${k}p&quot; | awk &#39;BEGIN {FS=&quot;:&quot;}; END{print $1}&#39;)&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Paragraph_begin=$(($Paragraph_begin+5))&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;k=$(($k+1))&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Paragraph_end=$(cat $Path/tempA_${i}_${j}.txt | sed -n &quot;${k}p&quot; | awk &#39;BEGIN {FS=&quot;:&quot;}; END{print $1}&#39;)&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Paragraph_end=$(($Paragraph_end-2))&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;cat ${PathFileName} |sed -n &quot;${Paragraph_begin},${Paragraph_end}p&quot; &amp;gt; $Path/tempB_${i}_${j}.txt&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;done&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;done&lt;br /&gt;&lt;br /&gt;done</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/4601682549432225766/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/11/eval-eval-saenameaxsaenameai1j.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/4601682549432225766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/4601682549432225766'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/11/eval-eval-saenameaxsaenameai1j.html' title='eval用法   eval SAENameAx=\${SAENameA$(($i+1))[j]}'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-105756598453439971</id><published>2019-11-01T08:38:00.002+08:00</published><updated>2019-11-01T08:39:15.965+08:00</updated><title type='text'>Linux 的 scp 指令用法教學與範例：遠端加密複製檔案與目錄</title><content type='html'>&lt;div&gt;文章來自&amp;nbsp;&lt;a href=&quot;https://blog.gtwang.org/linux/linux-scp-command-tutorial-examples/&quot;&gt;https://blog.gtwang.org/linux/linux-scp-command-tutorial-examples/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: yellow; font-size: large;&quot;&gt;Linux 的 scp 指令用法教學與範例：遠端加密複製檔案與目錄&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;這裡介紹如何在 Linux 系統上以&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;scp&lt;/code&gt;&amp;nbsp;指令複製檔案與目錄，並提供一些參考範例。&lt;/div&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;若要在不同的 Linux 主機之間複製檔案，最常用的方法就是使用&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;scp&lt;/code&gt;&amp;nbsp;指令，它可以透過 SSH 安全加密傳輸的方式，將本地端的檔案或目錄複製到遠端，或是將遠端的資料複製到本地端，而這個指令在 Mac OS X 中也同樣可以使用。&lt;/div&gt;&lt;div class=&quot;notes&quot; style=&quot;-webkit-font-smoothing: antialiased; background-color: #edf4e8; border-bottom-color: rgb(107, 164, 66); border-left: 4px solid rgb(107, 164, 66); border-right-color: rgb(107, 164, 66); border-top-color: rgb(107, 164, 66); box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; font-style: italic; line-height: 25.5px; margin: 1.5em 0px; padding: 1.5em 1em;&quot;&gt;在不同 Linux 主機之間使用&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; font-style: normal; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;scp&lt;/code&gt;&amp;nbsp;指令複製檔案時，遠端的 Linux 主機必須要開啟 SSH 遠端登入服務，否則無法使用&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; font-style: normal; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;scp&lt;/code&gt;&amp;nbsp;指令複製檔案。&lt;/div&gt;&lt;h2 style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 2em; line-height: 40.8px; margin: 50px 0px 25px; padding: 0px;&quot;&gt;複製檔案與目錄&lt;/h2&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;scp&lt;/code&gt;&amp;nbsp;指令的語法跟一般的&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;cp&lt;/code&gt;&amp;nbsp;類似，只不過&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;scp&lt;/code&gt;&amp;nbsp;可以在不同的 Linux 主機之間複製檔案，其語法為：&lt;/div&gt;&lt;pre style=&quot;-webkit-font-smoothing: antialiased; background: rgb(47, 51, 61); border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: border-box; color: #d2d2d2; font-family: Menlo, Monaco, monospace; font-size: 14px; line-height: 21px; margin-bottom: 1.5em; overflow: auto; padding: 12.3438px 15.4219px;&quot;&gt;scp [帳號@來源主機]:來源檔案 [帳號@目的主機]:目的檔案&lt;/pre&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;這裡的帳號就是登入主機上的帳號（類似&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;ssh&lt;/code&gt;&amp;nbsp;指令的用法），如果省略帳號與主機，只寫一般的檔案路徑的話，就是代表本機的檔案。&lt;/div&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;例如將本地端的&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;/path/file1&lt;/code&gt;&amp;nbsp;複製到&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;192.168.0.1&lt;/code&gt;&amp;nbsp;這台主機上的&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;/path/file2&lt;/code&gt;，而登入&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;192.168.0.1&lt;/code&gt;&amp;nbsp;這台主機時，是以&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;myuser&lt;/code&gt;&amp;nbsp;這個帳號登入：&lt;/div&gt;&lt;pre style=&quot;-webkit-font-smoothing: antialiased; background: rgb(47, 51, 61); border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: border-box; color: #d2d2d2; font-family: Menlo, Monaco, monospace; font-size: 14px; line-height: 21px; margin-bottom: 1.5em; overflow: auto; padding: 12.3438px 15.4219px;&quot;&gt;&lt;span class=&quot;Comment&quot; style=&quot;box-sizing: border-box; color: #99968b; font-style: italic; margin-bottom: 0px;&quot;&gt;# 從本地端複製到遠端&lt;/span&gt;&lt;br /&gt;scp /path/file1 myuser@192.168.0.1:/path/file2&lt;/pre&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;也可以把遠端的檔案複製到本地端：&lt;/div&gt;&lt;pre style=&quot;-webkit-font-smoothing: antialiased; background: rgb(47, 51, 61); border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: border-box; color: #d2d2d2; font-family: Menlo, Monaco, monospace; font-size: 14px; line-height: 21px; margin-bottom: 1.5em; overflow: auto; padding: 12.3438px 15.4219px;&quot;&gt;&lt;span class=&quot;Comment&quot; style=&quot;box-sizing: border-box; color: #99968b; font-style: italic; margin-bottom: 0px;&quot;&gt;# 從遠端複製到本地端&lt;/span&gt;&lt;br /&gt;scp myuser@192.168.0.1:/path/file2 /path/file1&lt;/pre&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;這樣就會用&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;myuser&lt;/code&gt;&amp;nbsp;這個帳號登入&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;192.168.0.1&lt;/code&gt;，將遠端主機上的&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;/path/file2&lt;/code&gt;&amp;nbsp;複製到&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;/path/file1&lt;/code&gt;。&lt;/div&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;如果本地端的使用者帳號名稱剛好跟遠端的使用者帳號一樣，也可以將使用者帳號省略，例如：&lt;/div&gt;&lt;pre style=&quot;-webkit-font-smoothing: antialiased; background: rgb(47, 51, 61); border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: border-box; color: #d2d2d2; font-family: Menlo, Monaco, monospace; font-size: 14px; line-height: 21px; margin-bottom: 1.5em; overflow: auto; padding: 12.3438px 15.4219px;&quot;&gt;&lt;span class=&quot;Comment&quot; style=&quot;box-sizing: border-box; color: #99968b; font-style: italic; margin-bottom: 0px;&quot;&gt;# 從本地端複製到遠端&lt;/span&gt;&lt;br /&gt;scp /path/file1 192.168.0.1:/path/file2&lt;/pre&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;反過來也是類似：&lt;/div&gt;&lt;pre style=&quot;-webkit-font-smoothing: antialiased; background: rgb(47, 51, 61); border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: border-box; color: #d2d2d2; font-family: Menlo, Monaco, monospace; font-size: 14px; line-height: 21px; margin-bottom: 1.5em; overflow: auto; padding: 12.3438px 15.4219px;&quot;&gt;&lt;span class=&quot;Comment&quot; style=&quot;box-sizing: border-box; color: #99968b; font-style: italic; margin-bottom: 0px;&quot;&gt;# 從遠端複製到本地端&lt;/span&gt;&lt;br /&gt;scp 192.168.0.1:/path/file2 /path/file1&lt;/pre&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; margin: 40px 0px;&quot;&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-7794009487786811&quot; data-ad-format=&quot;fluid&quot; data-ad-layout=&quot;in-article&quot; data-ad-slot=&quot;7302780695&quot; data-adsbygoogle-status=&quot;done&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; display: block; height: 155px; text-align: center;&quot;&gt;&lt;ins id=&quot;aswift_4_expand&quot; style=&quot;-webkit-font-smoothing: antialiased; background-color: transparent; border: none; box-sizing: border-box; display: inline-table; height: 155px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 617px;&quot;&gt;&lt;ins id=&quot;aswift_4_anchor&quot; style=&quot;-webkit-font-smoothing: antialiased; background-color: transparent; border: none; box-sizing: border-box; display: block; height: 155px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 617px;&quot;&gt;&lt;br /&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;/div&gt;&lt;h2 style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 2em; line-height: 40.8px; margin: 50px 0px 25px; padding: 0px;&quot;&gt;複製目錄&lt;/h2&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;若要複製整個目錄以及其下的所有檔案，則加上&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;-r&lt;/code&gt;&amp;nbsp;參數：&lt;/div&gt;&lt;pre style=&quot;-webkit-font-smoothing: antialiased; background: rgb(47, 51, 61); border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: border-box; color: #d2d2d2; font-family: Menlo, Monaco, monospace; font-size: 14px; line-height: 21px; margin-bottom: 1.5em; overflow: auto; padding: 12.3438px 15.4219px;&quot;&gt;&lt;span class=&quot;Comment&quot; style=&quot;box-sizing: border-box; color: #99968b; font-style: italic;&quot;&gt;# 複製目錄&lt;/span&gt;&lt;br /&gt;scp &lt;span class=&quot;Special&quot; style=&quot;box-sizing: border-box; color: #e7f6da; margin-bottom: 0px;&quot;&gt;-r&lt;/span&gt; /path/folder1 myuser@192.168.0.1:/path/folder2&lt;/pre&gt;&lt;h2 style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 2em; line-height: 40.8px; margin: 50px 0px 25px; padding: 0px;&quot;&gt;保留檔案時間與權限&lt;/h2&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;若要讓檔案在複製之後，還可保留原本的修改時間、存取時間與權限，可以加上&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;-p&lt;/code&gt;&amp;nbsp;參數：&lt;/div&gt;&lt;pre style=&quot;-webkit-font-smoothing: antialiased; background: rgb(47, 51, 61); border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: border-box; color: #d2d2d2; font-family: Menlo, Monaco, monospace; font-size: 14px; line-height: 21px; margin-bottom: 1.5em; overflow: auto; padding: 12.3438px 15.4219px;&quot;&gt;&lt;span class=&quot;Comment&quot; style=&quot;box-sizing: border-box; color: #99968b; font-style: italic;&quot;&gt;# 保留檔案時間與權限&lt;/span&gt;&lt;br /&gt;scp &lt;span class=&quot;Special&quot; style=&quot;box-sizing: border-box; color: #e7f6da; margin-bottom: 0px;&quot;&gt;-p&lt;/span&gt; /path/file1 myuser@192.168.0.1:/path/file2&lt;/pre&gt;&lt;h2 style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 2em; line-height: 40.8px; margin: 50px 0px 25px; padding: 0px;&quot;&gt;資料壓縮&lt;/h2&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;若要將資料壓縮之後再傳送，減少網路頻寬的使用量，可以加上&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;-C&lt;/code&gt;&amp;nbsp;參數：&lt;/div&gt;&lt;pre style=&quot;-webkit-font-smoothing: antialiased; background: rgb(47, 51, 61); border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: border-box; color: #d2d2d2; font-family: Menlo, Monaco, monospace; font-size: 14px; line-height: 21px; margin-bottom: 1.5em; overflow: auto; padding: 12.3438px 15.4219px;&quot;&gt;&lt;span class=&quot;Comment&quot; style=&quot;box-sizing: border-box; color: #99968b; font-style: italic;&quot;&gt;# 資料壓縮&lt;/span&gt;&lt;br /&gt;scp &lt;span class=&quot;Special&quot; style=&quot;box-sizing: border-box; color: #e7f6da; margin-bottom: 0px;&quot;&gt;-C&lt;/span&gt; /path/file1 myuser@192.168.0.1:/path/file2&lt;/pre&gt;&lt;h2 style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 2em; line-height: 40.8px; margin: 50px 0px 25px; padding: 0px;&quot;&gt;限制傳輸速度&lt;/h2&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;若要限制網路的使用頻寬，可以用&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;-l&lt;/code&gt;&amp;nbsp;指定可用的網路頻寬上限值（單位為 Kbit/s）：&lt;/div&gt;&lt;pre style=&quot;-webkit-font-smoothing: antialiased; background: rgb(47, 51, 61); border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: border-box; color: #d2d2d2; font-family: Menlo, Monaco, monospace; font-size: 14px; line-height: 21px; margin-bottom: 1.5em; overflow: auto; padding: 12.3438px 15.4219px;&quot;&gt;&lt;span class=&quot;Comment&quot; style=&quot;box-sizing: border-box; color: #99968b; font-style: italic;&quot;&gt;# 限制傳輸速度為 400 Kbit/s&lt;/span&gt;&lt;br /&gt;scp &lt;span class=&quot;Special&quot; style=&quot;box-sizing: border-box; color: #e7f6da;&quot;&gt;-l&lt;/span&gt; &lt;span class=&quot;Constant&quot; style=&quot;box-sizing: border-box; color: #e5786d; margin-bottom: 0px;&quot;&gt;400&lt;/span&gt; /path/file1 myuser@192.168.0.1:/path/file2&lt;/pre&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;這樣就會限制&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;scp&lt;/code&gt;&amp;nbsp;只能使用&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;400&lt;/code&gt;&amp;nbsp;Kbit/s，也就是&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;400 / 8 = 50&lt;/code&gt;&amp;nbsp;KB/s。&lt;/div&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; margin: 20px 0px;&quot;&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-7794009487786811&quot; data-ad-slot=&quot;5795783333&quot; data-adsbygoogle-status=&quot;done&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; display: inline-block; height: 90px; width: 200px;&quot;&gt;&lt;ins id=&quot;aswift_5_expand&quot; style=&quot;-webkit-font-smoothing: antialiased; background-color: transparent; border: none; box-sizing: border-box; display: inline-table; height: 90px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 200px;&quot;&gt;&lt;ins id=&quot;aswift_5_anchor&quot; style=&quot;-webkit-font-smoothing: antialiased; background-color: transparent; border: none; box-sizing: border-box; display: block; height: 90px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 200px;&quot;&gt;&lt;iframe allowfullscreen=&quot;true&quot; allowtransparency=&quot;true&quot; data-origheight=&quot;90&quot; data-origwidth=&quot;200&quot; frameborder=&quot;0&quot; height=&quot;90&quot; hspace=&quot;0&quot; id=&quot;aswift_5&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;aswift_5&quot; scrolling=&quot;no&quot; style=&quot;-webkit-font-smoothing: antialiased; border-style: initial; border-width: 0px; box-sizing: border-box; height: 90px; left: 0px; margin-bottom: 0px; position: absolute; top: 0px; width: 200px;&quot; vspace=&quot;0&quot; width=&quot;200&quot;&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;/div&gt;&lt;h2 style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 2em; line-height: 40.8px; margin: 50px 0px 25px; padding: 0px;&quot;&gt;自訂連接埠&lt;/h2&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;一般 SSH 伺服器的連接埠號為 22，如果遇到使用非標準埠號的伺服器，可以用&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;-P&lt;/code&gt;&amp;nbsp;來指定埠號。若遠端的 SSH 伺服器使用&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;2222&lt;/code&gt;&amp;nbsp;這個連接埠，我們就可以這樣複製檔案：&lt;/div&gt;&lt;pre style=&quot;-webkit-font-smoothing: antialiased; background: rgb(47, 51, 61); border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: border-box; color: #d2d2d2; font-family: Menlo, Monaco, monospace; font-size: 14px; line-height: 21px; margin-bottom: 1.5em; overflow: auto; padding: 12.3438px 15.4219px;&quot;&gt;&lt;span class=&quot;Comment&quot; style=&quot;box-sizing: border-box; color: #99968b; font-style: italic;&quot;&gt;# 使用 2222 連接埠&lt;/span&gt;&lt;br /&gt;scp &lt;span class=&quot;Special&quot; style=&quot;box-sizing: border-box; color: #e7f6da;&quot;&gt;-P&lt;/span&gt; &lt;span class=&quot;Constant&quot; style=&quot;box-sizing: border-box; color: #e5786d; margin-bottom: 0px;&quot;&gt;2222&lt;/span&gt; /path/file1 myuser@192.168.0.1:/path/file2&lt;/pre&gt;&lt;h2 style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 2em; line-height: 40.8px; margin: 50px 0px 25px; padding: 0px;&quot;&gt;IPv4 與 IPv6&lt;/h2&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;-4&lt;/code&gt;&amp;nbsp;與&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;-6&lt;/code&gt;&amp;nbsp;兩個參數分別可以讓&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; background: rgb(238, 238, 238); border-radius: 3px; border: 0px; box-sizing: border-box; font-family: Menlo, Monaco, monospace; line-height: 1; margin: 0px; padding: 2px 4px;&quot;&gt;scp&lt;/code&gt;&amp;nbsp;使用 IPv4 與 IPv6 來傳輸資料：&lt;/div&gt;&lt;pre style=&quot;-webkit-font-smoothing: antialiased; background: rgb(47, 51, 61); border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: border-box; color: #d2d2d2; font-family: Menlo, Monaco, monospace; font-size: 14px; line-height: 21px; margin-bottom: 1.5em; overflow: auto; padding: 12.3438px 15.4219px;&quot;&gt;&lt;span class=&quot;Comment&quot; style=&quot;box-sizing: border-box; color: #99968b; font-style: italic;&quot;&gt;# 使用 IPv4&lt;/span&gt;&lt;br /&gt;scp &lt;span class=&quot;Constant&quot; style=&quot;box-sizing: border-box; color: #e5786d;&quot;&gt;-4&lt;/span&gt; /path/file1 myuser@192.168.0.1:/path/file2&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Comment&quot; style=&quot;box-sizing: border-box; color: #99968b; font-style: italic;&quot;&gt;# 使用 IPv6&lt;/span&gt;&lt;br /&gt;scp &lt;span class=&quot;Constant&quot; style=&quot;box-sizing: border-box; color: #e5786d; margin-bottom: 0px;&quot;&gt;-6&lt;/span&gt; /path/file1 myuser@192.168.0.1:/path/file2&lt;/pre&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; background-color: #f1f1f1; border: 0px; box-sizing: border-box; color: #111111; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 17px; line-height: 28.9px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;參考資料：&lt;a href=&quot;http://www.tecmint.com/scp-commands-examples/&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; color: #0093c2; outline: 0px; text-decoration-line: none; transition: all 0.1s ease-in-out 0s;&quot;&gt;Tecmint&lt;/a&gt;、&lt;a href=&quot;http://linuxroutes.com/practical-guide-linux-scp-example/&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; color: #0093c2; outline: 0px; text-decoration-line: none; transition: all 0.1s ease-in-out 0s;&quot;&gt;UX Techno&lt;/a&gt;、&lt;a href=&quot;http://www.linuxandubuntu.com/home/linux-utilities-linux-file-sharing-over-network-computers-using-scp-and-rsync&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; color: #0093c2; outline: 0px; text-decoration-line: none; transition: all 0.1s ease-in-out 0s;&quot;&gt;Linux and Ubuntu&lt;/a&gt;、&lt;a href=&quot;http://www.jscape.com/blog/linux-scp-example&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; color: #0093c2; outline: 0px; text-decoration-line: none; transition: all 0.1s ease-in-out 0s;&quot;&gt;Jscape&lt;/a&gt;、&lt;a href=&quot;https://docstore.mik.ua/orelly/networking_2ndEd/ssh/ch03_08.htm&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; color: #0093c2; outline: 0px; text-decoration-line: none; transition: all 0.1s ease-in-out 0s;&quot;&gt;O’Relly&lt;/a&gt;、&lt;a href=&quot;https://www.cyberciti.biz/faq/scp-exclude-files-when-using-command-recursively-on-unix-linux/&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; color: #0093c2; margin-bottom: 0px; outline: 0px; text-decoration-line: none; transition: all 0.1s ease-in-out 0s;&quot;&gt;nixCraft&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/105756598453439971/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/11/linux-scp.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/105756598453439971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/105756598453439971'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/11/linux-scp.html' title='Linux 的 scp 指令用法教學與範例：遠端加密複製檔案與目錄'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-4330773458648665166</id><published>2019-10-30T16:02:00.002+08:00</published><updated>2019-10-30T16:03:09.261+08:00</updated><title type='text'>[Ubuntu] 自動掛載 NAS 網路磁碟機 (samba)</title><content type='html'>轉自&lt;br /&gt;&lt;a href=&quot;https://blog.ladsai.com/ubuntu-%E8%87%AA%E5%8B%95%E6%8E%9B%E8%BC%89-nas-%E7%B6%B2%E8%B7%AF%E7%A3%81%E7%A2%9F%E6%A9%9F-samba.html&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;https://blog.ladsai.com/ubuntu-%E8%87%AA%E5%8B%95%E6%8E%9B%E8%BC%89-nas-%E7%B6%B2%E8%B7%AF%E7%A3%81%E7%A2%9F%E6%A9%9F-samba.html&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;footer class=&quot;entry-footer&quot; style=&quot;background-color: white; box-sizing: inherit; color: #8a8a8a; float: left; font-family: Ubuntu, &amp;quot;Open Sans&amp;quot;, Arial, Helvetica, sans-serif; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; letter-spacing: 0.8px; line-height: 1.75em; margin: 0.153846em 0px 2em; width: 840px;&quot;&gt;&lt;span class=&quot;byline&quot; style=&quot;box-sizing: inherit; display: block; margin-bottom: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;byline&quot; style=&quot;box-sizing: inherit; display: block; margin-bottom: 0px;&quot;&gt;&lt;header class=&quot;entry-header&quot; style=&quot;box-sizing: inherit; color: #1a1a1a; font-size: 16px; letter-spacing: 0.8px; margin: 0em 0px;&quot;&gt;&lt;h1 class=&quot;entry-title&quot; style=&quot;box-sizing: inherit; clear: both; font-family: Ubuntu, Montserrat, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 1.8rem; line-height: 1.225; margin: 0px 0px 0.1em; text-rendering: optimizelegibility;&quot;&gt;[Ubuntu] 自動掛載 NAS 網路磁碟機 (samba)&lt;/h1&gt;&lt;/header&gt;&lt;footer class=&quot;entry-footer&quot; style=&quot;box-sizing: inherit; float: left; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; letter-spacing: 0.8px; line-height: 1.75em; margin: 0.153846em 0px 2em; width: 840px;&quot;&gt;&lt;span class=&quot;byline&quot; style=&quot;box-sizing: inherit; display: block; margin-bottom: 0px;&quot;&gt;&lt;span class=&quot;author vcard&quot; style=&quot;box-sizing: inherit;&quot;&gt;&amp;nbsp;by &amp;nbsp;&lt;a class=&quot;url fn n&quot; href=&quot;https://blog.ladsai.com/author/ray&quot; style=&quot;background-color: transparent; box-sizing: inherit; color: #8a8a8a; text-decoration-line: none;&quot;&gt;RAYKUO&lt;/a&gt;&amp;nbsp;&amp;nbsp;•&amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://blog.ladsai.com/ubuntu-%e8%87%aa%e5%8b%95%e6%8e%9b%e8%bc%89-nas-%e7%b6%b2%e8%b7%af%e7%a3%81%e7%a2%9f%e6%a9%9f-samba.html&quot; rel=&quot;bookmark&quot; style=&quot;background-color: transparent; box-sizing: inherit; color: #8a8a8a; text-decoration-line: none;&quot;&gt;&lt;time class=&quot;entry-date published&quot; datetime=&quot;2018-09-28T15:38:29+08:00&quot; style=&quot;box-sizing: inherit;&quot;&gt;2018-09-28&lt;/time&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;•&amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://blog.ladsai.com/category/ubuntu&quot; rel=&quot;category tag&quot; style=&quot;background-color: transparent; box-sizing: inherit; color: #8a8a8a; text-decoration-line: none;&quot;&gt;Ubuntu&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/footer&gt;&lt;div class=&quot;entry-content&quot; style=&quot;border-color: rgb(209, 209, 209); box-sizing: inherit; color: #1a1a1a; float: right; font-size: 16px; letter-spacing: 0.8px; margin: 0em 0px; width: 840px;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;Ubuntu 18.04&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;首先建立一個要空資料夾，例如要掛載 NAS 上的 Download Station 資料夾，在 /mnt 下也建一個同名資料夾：&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;$&amp;nbsp;&lt;code style=&quot;background-color: #d1d1d1; box-sizing: inherit; font-family: Inconsolata, monospace; font-size: 1em; padding: 0.125em 0.25em;&quot;&gt;sudo mkdir &quot;/mnt/Download Station&quot;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;如果只是臨時需要不要求每次開機都自動掛載的話，可以這樣下指令：&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;$&amp;nbsp;&lt;code style=&quot;background-color: #d1d1d1; box-sizing: inherit; font-family: Inconsolata, monospace; font-size: 1em; padding: 0.125em 0.25em;&quot;&gt;sudo&amp;nbsp;mount -t cifs -o username=&quot;名字&quot;,password=&quot;密碼&quot;,gid=&quot;1000&quot;,uid=&quot;1000&quot; &quot;//NAS_IP/Download Station&quot; &quot;/mnt/Download Station&quot;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;其中 gid 與 uid 可使用&amp;nbsp;&lt;code style=&quot;background-color: #d1d1d1; box-sizing: inherit; font-family: Inconsolata, monospace; font-size: 1em; padding: 0.125em 0.25em;&quot;&gt;id your_username&lt;/code&gt;&amp;nbsp;取得，如果沒設 gid 與 uid 資料夾會變成 read-only。&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;&lt;span id=&quot;more-618&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;/span&gt;如果要讓系統每次開機都自動掛載，必需編輯 /etc/fstab 檔案：&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;$&amp;nbsp;&lt;code style=&quot;background-color: #d1d1d1; box-sizing: inherit; font-family: Inconsolata, monospace; font-size: 1em; padding: 0.125em 0.25em;&quot;&gt;sudo nano /etc/fstab&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;加入下面這行，如果檔案路徑中有空白需以&amp;nbsp;&lt;code style=&quot;background-color: #d1d1d1; box-sizing: inherit; font-family: Inconsolata, monospace; font-size: 1em; padding: 0.125em 0.25em;&quot;&gt;\040&lt;/code&gt;&amp;nbsp;代替：&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;&lt;code style=&quot;background-color: #d1d1d1; box-sizing: inherit; font-family: Inconsolata, monospace; font-size: 1em; padding: 0.125em 0.25em;&quot;&gt;//NAS_IP/Download\040Station /mnt/Download\040Station cifs username=名字,password=密碼,gid=1000,uid=1000 0 0&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;重開機或是使用 $ sudo mount -a 來執行掛載資料夾的動作。&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;yarpp-related yarpp-related-none&quot; style=&quot;box-sizing: inherit; margin: 1em 0px 0px;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;No related posts.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/footer&gt;&lt;br /&gt;&lt;div class=&quot;entry-content&quot; style=&quot;background-color: white; border-color: rgb(209, 209, 209); box-sizing: inherit; color: #1a1a1a; float: right; font-family: Ubuntu, &amp;quot;Open Sans&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; letter-spacing: 0.8px; margin: 0em 0px; width: 840px;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;Ubuntu 18.04&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;首先建立一個要空資料&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;yarpp-related yarpp-related-none&quot; style=&quot;box-sizing: inherit; margin: 1em 0px 0px;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.75em;&quot;&gt;No related posts.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/4330773458648665166/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/httpsblog.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/4330773458648665166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/4330773458648665166'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/httpsblog.html' title='[Ubuntu] 自動掛載 NAS 網路磁碟機 (samba)'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-4460665900507534296</id><published>2019-10-29T14:15:00.001+08:00</published><updated>2019-10-29T14:15:14.755+08:00</updated><title type='text'></title><content type='html'>&lt;h1 style=&quot;background-color: white; border: 0px; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; margin: 0px 0px 10px; padding: 0px;&quot;&gt;&lt;a href=&quot;https://www.runoob.com/python3/python3-reg-expressions.html&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;https://www.runoob.com/python3/python3-reg-expressions.html&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;&lt;h1 style=&quot;background-color: white; border: 0px; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 2.1em; margin: 0px 0px 10px; padding: 0px;&quot;&gt;Python3 正则表达式&lt;/h1&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;正则表达式是一个特殊的字符序列，它能帮助你方便的检查一个字符串是否与某种模式匹配。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;Python 自1.5版本起增加了re 模块，它提供 Perl 风格的正则表达式模式。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;re 模块使 Python 语言拥有全部的正则表达式功能。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;compile 函数根据一个模式字符串和可选的标志参数生成一个正则表达式对象。该对象拥有一系列方法用于正则表达式匹配和替换。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;re 模块也提供了与这些方法功能完全一致的函数，这些函数使用一个模式字符串做为它们的第一个参数。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;本章节主要介绍 Python 中常用的正则表达式处理函数，如果你对正则表达式不了解，可以查看我们的&amp;nbsp;&lt;a href=&quot;https://www.runoob.com/regexp/regexp-tutorial.html&quot; rel=&quot;noopener noreferrer&quot; style=&quot;border: 0px; color: #006600; margin: 0px; outline: none; padding: 0px; transition-duration: 0.2s; transition-property: opacity;&quot; target=&quot;_blank&quot;&gt;正则表达式 - 教程&lt;/a&gt;。&lt;/div&gt;&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.8em; line-height: 1.8em; margin: 2px 0px; padding: 0px;&quot;&gt;re.match函数&lt;/h2&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;re.match 尝试从字符串的起始位置匹配一个模式，如果不是起始位置匹配成功的话，match()就返回none。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;函数语法&lt;/strong&gt;：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; flags&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;函数参数说明：&lt;/div&gt;&lt;table class=&quot;reference&quot; style=&quot;background-color: white; border-collapse: collapse; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 4px 0px; padding: 0px; width: 833px;&quot;&gt;&lt;tbody style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top; width: 242px;&quot;&gt;参数&lt;/th&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;pattern&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配的正则表达式&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;string&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;要匹配的字符串。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;flags&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;标志位，用于控制正则表达式的匹配方式，如：是否区分大小写，多行匹配等等。参见：&lt;a href=&quot;https://www.runoob.com/python3/python3-reg-expressions.html#flags&quot; style=&quot;border: 0px; color: #006600; margin: 0px; outline: none; padding: 0px; transition-duration: 0.2s; transition-property: opacity;&quot;&gt;正则表达式修饰符 - 可选标志&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;匹配成功re.match方法返回一个匹配的对象，否则返回None。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;我们可以使用group(num) 或 groups() 匹配对象函数来获取匹配表达式。&lt;/div&gt;&lt;table class=&quot;reference&quot; style=&quot;background-color: white; border-collapse: collapse; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 4px 0px; padding: 0px; width: 833px;&quot;&gt;&lt;tbody style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top; width: 242px;&quot;&gt;匹配对象方法&lt;/th&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;group(num=0)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配的整个表达式的字符串，group() 可以一次输入多个组号，在这种情况下它将返回一个包含那些组所对应值的元组。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;groups()&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;返回一个包含所有小组字符串的元组，从 1 到 所含的小组号。&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;#!/usr/bin/python&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;www&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;www.runoob.com&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 在起始位置匹配&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;com&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;www.runoob.com&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;         &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 不在起始位置匹配&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;以上实例运行输出结果为：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;None&lt;/span&gt;&lt;/pre&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;#!/usr/bin/python3&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;line&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;Cats are smarter than dogs&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# .* 表示任意匹配除换行符（\n、\r）之外的任何单个或多个字符&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;(.*) are (.*?) .*&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;line&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;M&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;I&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;:    &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;matchObj.group() : &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;matchObj.group(1) : &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;matchObj.group(2) : &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;:    &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;No match!!&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;以上实例执行结果如下：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #660066; margin: 0px; padding: 0px;&quot;&gt;Cats&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; are smarter than dogs&lt;br /&gt;matchObj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #660066; margin: 0px; padding: 0px;&quot;&gt;Cats&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;matchObj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;  smarter&lt;/span&gt;&lt;/pre&gt;&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.8em; line-height: 1.8em; margin: 2px 0px; padding: 0px;&quot;&gt;re.search方法&lt;/h2&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;re.search 扫描整个字符串并返回第一个成功的匹配。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;函数语法：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;search&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; flags&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;函数参数说明：&lt;/div&gt;&lt;table class=&quot;reference&quot; style=&quot;background-color: white; border-collapse: collapse; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 4px 0px; padding: 0px; width: 833px;&quot;&gt;&lt;tbody style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top; width: 242px;&quot;&gt;参数&lt;/th&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;pattern&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配的正则表达式&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;string&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;要匹配的字符串。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;flags&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;标志位，用于控制正则表达式的匹配方式，如：是否区分大小写，多行匹配等等。参见：&lt;a href=&quot;https://www.runoob.com/python3/python3-reg-expressions.html#flags&quot; style=&quot;border: 0px; color: #006600; margin: 0px; outline: none; padding: 0px; transition-duration: 0.2s; transition-property: opacity;&quot;&gt;正则表达式修饰符 - 可选标志&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;匹配成功re.search方法返回一个匹配的对象，否则返回None。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;我们可以使用group(num) 或 groups() 匹配对象函数来获取匹配表达式。&lt;/div&gt;&lt;table class=&quot;reference&quot; style=&quot;background-color: white; border-collapse: collapse; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 4px 0px; padding: 0px; width: 833px;&quot;&gt;&lt;tbody style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top; width: 242px;&quot;&gt;匹配对象方法&lt;/th&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;group(num=0)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配的整个表达式的字符串，group() 可以一次输入多个组号，在这种情况下它将返回一个包含那些组所对应值的元组。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;groups()&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;返回一个包含所有小组字符串的元组，从 1 到 所含的小组号。&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;#!/usr/bin/python3&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;search&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;www&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;www.runoob.com&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 在起始位置匹配&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;search&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;com&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;www.runoob.com&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;         &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 不在起始位置匹配&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;以上实例运行输出结果为：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;14&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;#!/usr/bin/python3&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;line&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;Cats are smarter than dogs&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;;   &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;searchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;search&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;(.*) are (.*?) .*&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;line&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;M&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;I&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;searchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;:    &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;searchObj.group() : &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;searchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;searchObj.group(1) : &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;searchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;searchObj.group(2) : &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;searchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;:    &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;Nothing found!!&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px;&quot;&gt;以上实例执行结果如下：&lt;/span&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;searchObj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #660066; margin: 0px; padding: 0px;&quot;&gt;Cats&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; are smarter than dogs&lt;br /&gt;searchObj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #660066; margin: 0px; padding: 0px;&quot;&gt;Cats&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;searchObj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;  smarter&lt;/span&gt;&lt;/pre&gt;&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.8em; line-height: 1.8em; margin: 2px 0px; padding: 0px;&quot;&gt;re.match与re.search的区别&lt;/h2&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;re.match只匹配字符串的开始，如果字符串开始不符合正则表达式，则匹配失败，函数返回None；而re.search匹配整个字符串，直到找到一个匹配。&lt;/div&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;#!/usr/bin/python3&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;line&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;Cats are smarter than dogs&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;;   &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;dogs&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;line&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;M&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;I&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;:    &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;match --&amp;gt; matchObj.group() : &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;:    &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;No match!!&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;search&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;dogs&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;line&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;M&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;I&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;:    &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;search --&amp;gt; matchObj.group() : &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matchObj&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;:    &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;No match!!&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px;&quot;&gt;以上实例运行结果如下：&lt;/span&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #660066; margin: 0px; padding: 0px;&quot;&gt;No&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; match&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;!!&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;search &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;--&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; matchObj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;  dogs&lt;/span&gt;&lt;/pre&gt;&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.8em; line-height: 1.8em; margin: 2px 0px; padding: 0px;&quot;&gt;检索和替换&lt;/h2&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;Python 的re模块提供了re.sub用于替换字符串中的匹配项。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;语法：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; repl&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; count&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; flags&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;参数：&lt;/div&gt;&lt;ul style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; line-height: 16.8px; list-style: none; margin: 1em 0px; padding: 0px;&quot;&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;pattern : 正则中的模式字符串。&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;repl : 替换的字符串，也可为一个函数。&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;string : 要被查找替换的原始字符串。&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;count : 模式匹配后替换的最大次数，默认 0 表示替换所有的匹配。&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;flags : 编译时用的匹配模式，数字形式。&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;前三个为必选参数，后两个为可选参数。&lt;/div&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;#!/usr/bin/python3&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;phone&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;2004-959-559 # 这是一个电话号码&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 删除注释&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;num&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;#.*$&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;phone&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;电话号码 : &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;num&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 移除非数字的内容&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;num&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-special&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;\D&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;phone&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;电话号码 : &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;num&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;以上实例执行结果如下：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;电话号码&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;2004&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;959&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;559&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;电话号码&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;2004959559&lt;/span&gt;&lt;/pre&gt;&lt;h3 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.4em; margin: 8px 0px; padding: 0px;&quot;&gt;repl 参数是一个函数&lt;/h3&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;以下实例中将字符串中的匹配的数字乘于 2：&lt;/div&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;#!/usr/bin/python&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 将匹配的数字乘于 2&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;def&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;double&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matched&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;:     &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-builtin&quot; style=&quot;border: 0px; color: teal; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;matched&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-builtin&quot; style=&quot;border: 0px; color: teal; margin: 0px; padding: 0px;&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; * &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;A23G4HFD567&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;(?P&amp;lt;value&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-special&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;\d&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;+)&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;double&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;执行输出结果为：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;A46G8HFD1134&lt;/span&gt;&lt;/pre&gt;&lt;h3 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.4em; margin: 8px 0px; padding: 0px;&quot;&gt;compile 函数&lt;/h3&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;compile 函数用于编译正则表达式，生成一个正则表达式（ Pattern ）对象，供 match() 和 search() 这两个函数使用。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;语法格式为：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;[,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; flags&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;])&lt;/span&gt;&lt;/pre&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;参数：&lt;/div&gt;&lt;ul style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; line-height: 16.8px; list-style: none; margin: 1em 0px; padding: 0px;&quot;&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;pattern : 一个字符串形式的正则表达式&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;flags 可选，表示匹配模式，比如忽略大小写，多行模式等，具体参数为：&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;&lt;ul style=&quot;border: 0px; line-height: 18.2px; list-style: none; margin: 1em 0px; padding: 0px;&quot;&gt;re.I 忽略大小写 &lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;re.L 表示特殊字符集 \w, \W, \b, \B, \s, \S 依赖于当前环境&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;re.M 多行模式&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;re.S 即为&#39; . &#39;并且包括换行符在内的任意字符（&#39; . &#39;不包括换行符）&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;re.U 表示特殊字符集 \w, \W, \b, \B, \d, \D, \s, \S 依赖于 Unicode 字符属性数据库&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;re.X 为了增加可读性，忽略空格和&#39; # &#39;后面的注释&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.4em; margin: 8px 0px; padding: 0px;&quot;&gt;实例&lt;/h3&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-builtin&quot; style=&quot;border: 0px; color: teal; margin: 0px; padding: 0px;&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-special&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;\d&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;                    &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 用于匹配至少一个数字&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;one12twothree34four&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 查找头部，没有匹配&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;None&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;one12twothree34four&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 从&#39;e&#39;的位置开始匹配，没有匹配&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;None&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;one12twothree34four&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 从&#39;1&#39;的位置开始匹配，正好匹配&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;                                         &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 返回一个 Match 对象&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;_sre&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;SRE_Match&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;object&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;at&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;x10a42aac0&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 可省略 0&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;start&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 可省略 0&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;     &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 可省略 0&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 可省略 0&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;在上面，当匹配成功时返回一个 Match 对象，其中：&lt;/div&gt;&lt;ul style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; line-height: 16.8px; list-style: none; margin: 1em 0px; padding: 0px;&quot;&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;group([group1, …])&lt;/code&gt;&amp;nbsp;方法用于获得一个或多个分组匹配的字符串，当要获得整个匹配的子串时，可直接使用&amp;nbsp;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;group()&lt;/code&gt;&amp;nbsp;或&amp;nbsp;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;group(0)&lt;/code&gt;；&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;start([group])&lt;/code&gt;&amp;nbsp;方法用于获取分组匹配的子串在整个字符串中的起始位置（子串第一个字符的索引），参数默认值为 0；&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;end([group])&lt;/code&gt;&amp;nbsp;方法用于获取分组匹配的子串在整个字符串中的结束位置（子串最后一个字符的索引+1），参数默认值为 0；&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;span([group])&lt;/code&gt;&amp;nbsp;方法返回&amp;nbsp;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;(start(group), end(group))&lt;/code&gt;。&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;再看看一个例子：&lt;/div&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-builtin&quot; style=&quot;border: 0px; color: teal; margin: 0px; padding: 0px;&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;([a-z]+) ([a-z]+)&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;I&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# re.I 表示忽略大小写&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;Hello World Wide Web&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;                               &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 匹配成功，返回一个 Match 对象&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;_sre&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;SRE_Match&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;object&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;at&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;x10bea83e8&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;                            &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 返回匹配成功的整个子串&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;Hello World&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;                             &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 返回匹配成功的整个子串的索引&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;                            &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 返回第一个分组匹配成功的子串&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;Hello&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;                             &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 返回第一个分组匹配成功的子串的索引&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;                            &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 返回第二个分组匹配成功的子串&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;World&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;                             &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 返回第二个分组匹配成功的子串索引&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;groups&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;                            &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 等价于 (m.group(1), m.group(2), ...)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;Hello&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;World&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;                            &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 不存在第三个分组&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;Traceback&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;most&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;recent&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;call&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;last&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;:   &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;stdin&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;line&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;module&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;IndexError&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;: &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;no&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;such&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.4em; margin: 8px 0px; padding: 0px;&quot;&gt;findall&lt;/h3&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;在字符串中找到正则表达式所匹配的所有子串，并返回一个列表，如果没有找到匹配的，则返回空列表。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;注意：&lt;/strong&gt;&amp;nbsp;match 和 search 是匹配一次 findall 匹配所有。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;语法格式为：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;findall&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;[,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; pos&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;[,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; endpos&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;]])&lt;/span&gt;&lt;/pre&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;参数：&lt;/div&gt;&lt;ul style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; line-height: 16.8px; list-style: none; margin: 1em 0px; padding: 0px;&quot;&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;&lt;span class=&quot;marked&quot; style=&quot;background-color: #eceae6; border-radius: 3px; border: 0px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-weight: bold; margin: 0px; padding: 0.2em;&quot;&gt;string&lt;/span&gt;&amp;nbsp;待匹配的字符串。&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;&lt;span class=&quot;marked&quot; style=&quot;background-color: #eceae6; border-radius: 3px; border: 0px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-weight: bold; margin: 0px; padding: 0.2em;&quot;&gt;pos&lt;/span&gt;&amp;nbsp;可选参数，指定字符串的起始位置，默认为 0。&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;&lt;span class=&quot;marked&quot; style=&quot;background-color: #eceae6; border-radius: 3px; border: 0px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-weight: bold; margin: 0px; padding: 0.2em;&quot;&gt;endpos&lt;/span&gt;&amp;nbsp;可选参数，指定字符串的结束位置，默认为字符串的长度。&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;查找字符串中的所有数字：&lt;/div&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-builtin&quot; style=&quot;border: 0px; color: teal; margin: 0px; padding: 0px;&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-special&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;\d&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 查找数字&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;result1&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;findall&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;runoob 123 google 456&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;result2&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;findall&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;run88oob123google456&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;result1&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;result2&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;输出结果：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #008800; margin: 0px; padding: 0px;&quot;&gt;&#39;123&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #008800; margin: 0px; padding: 0px;&quot;&gt;&#39;456&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #008800; margin: 0px; padding: 0px;&quot;&gt;&#39;88&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #008800; margin: 0px; padding: 0px;&quot;&gt;&#39;12&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;]&lt;/span&gt;&lt;/pre&gt;&lt;h3 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.4em; margin: 8px 0px; padding: 0px;&quot;&gt;re.finditer&lt;/h3&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;和 findall 类似，在字符串中找到正则表达式所匹配的所有子串，并把它们作为一个迭代器返回。&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;finditer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; flags&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;参数：&lt;/div&gt;&lt;table class=&quot;reference&quot; style=&quot;background-color: white; border-collapse: collapse; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 4px 0px; padding: 0px; width: 833px;&quot;&gt;&lt;tbody style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top; width: 242px;&quot;&gt;参数&lt;/th&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;pattern&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配的正则表达式&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;string&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;要匹配的字符串。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;flags&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;标志位，用于控制正则表达式的匹配方式，如：是否区分大小写，多行匹配等等。参见：&lt;a href=&quot;https://www.runoob.com/python3/python3-reg-expressions.html#flags&quot; style=&quot;border: 0px; color: #006600; margin: 0px; outline: none; padding: 0px; transition-duration: 0.2s; transition-property: opacity;&quot;&gt;正则表达式修饰符 - 可选标志&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;it&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;finditer&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-special&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;\d&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;12a32bc43jf3&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;it&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;:      &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;输出结果：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;43&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;3&lt;/span&gt;&lt;/pre&gt;&lt;h3 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.4em; margin: 8px 0px; padding: 0px;&quot;&gt;re.split&lt;/h3&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;split 方法按照能够匹配的子串将字符串分割后返回列表，它的使用形式如下：&lt;/div&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background: url(&amp;quot;/images/codecolorer_bg.gif&amp;quot;) center top rgb(251, 251, 251); border-color: rgb(221, 221, 221); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 20px; margin: 15px auto; overflow-wrap: break-word; padding: 10px 15px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;pattern&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #000088; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;[,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; maxsplit&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; flags&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: #006666; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #666600; margin: 0px; padding: 0px;&quot;&gt;])&lt;/span&gt;&lt;/pre&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;参数：&lt;/div&gt;&lt;table class=&quot;reference&quot; style=&quot;background-color: white; border-collapse: collapse; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 4px 0px; padding: 0px; width: 833px;&quot;&gt;&lt;tbody style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top; width: 242px;&quot;&gt;参数&lt;/th&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;pattern&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配的正则表达式&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;string&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;要匹配的字符串。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;maxsplit&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;分隔次数，maxsplit=1 分隔一次，默认为 0，不限制次数。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;flags&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;标志位，用于控制正则表达式的匹配方式，如：是否区分大小写，多行匹配等等。参见：&lt;a href=&quot;https://www.runoob.com/python3/python3-reg-expressions.html#flags&quot; style=&quot;border: 0px; color: #006600; margin: 0px; outline: none; padding: 0px; transition-duration: 0.2s; transition-property: opacity;&quot;&gt;正则表达式修饰符 - 可选标志&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;example&quot; style=&quot;background-color: #e5eecc; background-image: linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px); border: 1px solid rgb(212, 212, 212); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px 0px 5px; padding: 5px; width: 818.094px;&quot;&gt;&lt;h2 class=&quot;example&quot; style=&quot;background-color: transparent; border: 0px; color: #617f10; font-size: 14.4px; line-height: 1.8em; margin: 0px 0px 2px; padding: 0px;&quot;&gt;实例&lt;/h2&gt;&lt;div class=&quot;example_code&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); font-family: Menlo, Monaco, Consolas, &amp;quot;Andale Mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.2px; line-height: 1.4em; margin: 0px; overflow-wrap: break-word; padding: 5px; width: 801.719px; word-break: break-all;&quot;&gt;&lt;div class=&quot;hl-main&quot; style=&quot;border: 0px; margin: 0px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot; style=&quot;border: 0px; color: green; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-special&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;\W&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;runoob, runoob, runoob.&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;runoob&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;runoob&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;runoob&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-special&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;\W&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;+)&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt; runoob, runoob, runoob.&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;runoob&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;runoob&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;runoob&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-special&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;\W&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt; runoob, runoob, runoob.&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-number&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;runoob, runoob, runoob.&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;  &amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot; style=&quot;border: 0px; color: #0055aa; margin: 0px; padding: 0px;&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;a*&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;hello world&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;hl-comment&quot; style=&quot;border: 0px; color: #aa5500; margin: 0px; padding: 0px;&quot;&gt;# 对于一个找不到匹配的字符串而言，split 不会对其作出分割&lt;/span&gt;&lt;span class=&quot;hl-code&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-string&quot; style=&quot;border: 0px; color: #aa1111; margin: 0px; padding: 0px;&quot;&gt;hello world&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot; style=&quot;border: 0px; color: darkred; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot; style=&quot;border: 0px; color: olive; margin: 0px; padding: 0px;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.8em; line-height: 1.8em; margin: 2px 0px; padding: 0px;&quot;&gt;正则表达式对象&lt;/h2&gt;&lt;h3 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.4em; margin: 8px 0px; padding: 0px;&quot;&gt;re.RegexObject&lt;/h3&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;re.compile() 返回 RegexObject 对象。&lt;/div&gt;&lt;h3 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.4em; margin: 8px 0px; padding: 0px;&quot;&gt;re.MatchObject&lt;/h3&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;group() 返回被 RE 匹配的字符串。&lt;/div&gt;&lt;ul style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; line-height: 16.8px; list-style: none; margin: 1em 0px; padding: 0px;&quot;&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;&lt;span class=&quot;marked&quot; style=&quot;background-color: #eceae6; border-radius: 3px; border: 0px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-weight: bold; margin: 0px; padding: 0.2em;&quot;&gt;start()&lt;/span&gt;&amp;nbsp;返回匹配开始的位置&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;&lt;span class=&quot;marked&quot; style=&quot;background-color: #eceae6; border-radius: 3px; border: 0px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-weight: bold; margin: 0px; padding: 0.2em;&quot;&gt;end()&lt;/span&gt;&amp;nbsp;返回匹配结束的位置&lt;/li&gt;&lt;li style=&quot;background-image: url(&amp;quot;./assets/img/bullet.png&amp;quot;); background-position: left 0.5em; background-repeat: no-repeat; border: 0px; font-size: 13px; line-height: 1.5em; margin: 0px 0px 1em 1em; padding: 0px 0px 0px 1.5em; word-break: break-all;&quot;&gt;&lt;span class=&quot;marked&quot; style=&quot;background-color: #eceae6; border-radius: 3px; border: 0px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-weight: bold; margin: 0px; padding: 0.2em;&quot;&gt;span()&lt;/span&gt;&amp;nbsp;返回一个元组包含匹配 (开始,结束) 的位置&lt;/li&gt;&lt;/ul&gt;&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; height: 1px;&quot; /&gt;&lt;h2 id=&quot;flags&quot; style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.8em; line-height: 1.8em; margin: 2px 0px; padding: 0px;&quot;&gt;正则表达式修饰符 - 可选标志&lt;/h2&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;正则表达式可以包含一些可选标志修饰符来控制匹配的模式。修饰符被指定为一个可选的标志。多个标志可以通过按位 OR(|) 它们来指定。如 re.I | re.M 被设置成 I 和 M 标志：&lt;/div&gt;&lt;table class=&quot;reference&quot; style=&quot;background-color: white; border-collapse: collapse; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 4px 0px; padding: 0px; width: 833px;&quot;&gt;&lt;tbody style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top; width: 201px;&quot;&gt;修饰符&lt;/th&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re.I&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;使匹配对大小写不敏感&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re.L&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;做本地化识别（locale-aware）匹配&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re.M&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;多行匹配，影响 ^ 和 $&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re.S&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;使 . 匹配包括换行在内的所有字符&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re.U&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;根据Unicode字符集解析字符。这个标志影响 \w, \W, \b, \B.&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re.X&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;该标志通过给予你更灵活的格式以便你将正则表达式写得更易于理解。&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.8em; line-height: 1.8em; margin: 2px 0px; padding: 0px;&quot;&gt;正则表达式模式&lt;/h2&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;模式字符串使用特殊的语法来表示一个正则表达式：&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;字母和数字表示他们自身。一个正则表达式模式中的字母和数字匹配同样的字符串。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;多数字母和数字前加一个反斜杠时会拥有不同的含义。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;标点符号只有被转义时才匹配自身，否则它们表示特殊的含义。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;反斜杠本身需要使用反斜杠转义。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;由于正则表达式通常都包含反斜杠，所以你最好使用原始字符串来表示它们。模式元素(如&amp;nbsp;&lt;span class=&quot;marked&quot; style=&quot;background-color: #eceae6; border-radius: 3px; border: 0px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-weight: bold; margin: 0px; padding: 0.2em;&quot;&gt;r&#39;\t&#39;&lt;/span&gt;，等价于&amp;nbsp;&lt;span class=&quot;marked&quot; style=&quot;background-color: #eceae6; border-radius: 3px; border: 0px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-weight: bold; margin: 0px; padding: 0.2em;&quot;&gt;\\t&lt;/span&gt;&amp;nbsp;)匹配相应的特殊字符。&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 13px; line-height: 2em; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;下表列出了正则表达式模式语法中的特殊元素。如果你使用模式的同时提供了可选的标志参数，某些模式元素的含义会改变。&lt;/div&gt;&lt;table class=&quot;reference&quot; style=&quot;background-color: white; border-collapse: collapse; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 4px 0px; padding: 0px; width: 833px;&quot;&gt;&lt;tbody style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top; width: 201px;&quot;&gt;模式&lt;/th&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;^&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配字符串的开头&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;$&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配字符串的末尾。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;.&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任意字符，除了换行符，当re.DOTALL标记被指定时，则可以匹配包括换行符的任意字符。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;[...]&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;用来表示一组字符,单独列出：[amk] 匹配 &#39;a&#39;，&#39;m&#39;或&#39;k&#39;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;[^...]&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;不在[]中的字符：[^abc] 匹配除了a,b,c之外的字符。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re*&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配0个或多个的表达式。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re+&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配1个或多个的表达式。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re?&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配0个或1个由前面的正则表达式定义的片段，非贪婪方式&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re{ n}&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配n个前面表达式。例如，&quot;o{2}&quot;不能匹配&quot;Bob&quot;中的&quot;o&quot;，但是能匹配&quot;food&quot;中的两个o。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re{ n,}&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;精确匹配n个前面表达式。例如，&quot;o{2,}&quot;不能匹配&quot;Bob&quot;中的&quot;o&quot;，但能匹配&quot;foooood&quot;中的所有o。&quot;o{1,}&quot;等价于&quot;o+&quot;。&quot;o{0,}&quot;则等价于&quot;o*&quot;。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;re{ n, m}&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配 n 到 m 次由前面的正则表达式定义的片段，贪婪方式&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;a| b&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配a或b&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;(re)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配括号内的表达式，也表示一个组&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;(?imx)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;正则表达式包含三种可选标志：i, m, 或 x 。只影响括号中的区域。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;(?-imx)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;正则表达式关闭 i, m, 或 x 可选标志。只影响括号中的区域。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;(?: re)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;类似 (...), 但是不表示一个组&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;(?imx: re)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;在括号中使用i, m, 或 x 可选标志&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;(?-imx: re)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;在括号中不使用i, m, 或 x 可选标志&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;(?#...)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;注释.&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;(?= re)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;前向肯定界定符。如果所含正则表达式，以 ... 表示，在当前位置成功匹配时成功，否则失败。但一旦所含表达式已经尝试，匹配引擎根本没有提高；模式的剩余部分还要尝试界定符的右边。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;(?! re)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;前向否定界定符。与肯定界定符相反；当所含表达式不能在字符串当前位置匹配时成功。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;(?&amp;gt; re)&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配的独立模式，省去回溯。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\w&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配数字字母下划线&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\W&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配非数字字母下划线&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\s&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任意空白字符，等价于 [\t\n\r\f]。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\S&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任意非空字符&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\d&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任意数字，等价于 [0-9]。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\D&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任意非数字&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\A&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配字符串开始&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\Z&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配字符串结束，如果是存在换行，只匹配到换行前的结束字符串。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\z&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配字符串结束&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\G&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配最后匹配完成的位置。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\b&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配一个单词边界，也就是指单词和空格间的位置。例如， &#39;er\b&#39; 可以匹配&quot;never&quot; 中的 &#39;er&#39;，但不能匹配 &quot;verb&quot; 中的 &#39;er&#39;。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\B&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配非单词边界。&#39;er\B&#39; 能匹配 &quot;verb&quot; 中的 &#39;er&#39;，但不能匹配 &quot;never&quot; 中的 &#39;er&#39;。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\n, \t, 等。&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配一个换行符。匹配一个制表符, 等&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\1...\9&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配第n个分组的内容。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\10&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配第n个分组的内容，如果它经匹配。否则指的是八进制字符码的表达式。&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 1.8em; line-height: 1.8em; margin: 2px 0px; padding: 0px;&quot;&gt;正则表达式实例&lt;/h2&gt;&lt;h4 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px; padding: 0px;&quot;&gt;字符匹配&lt;/h4&gt;&lt;table class=&quot;reference&quot; style=&quot;background-color: white; border-collapse: collapse; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 4px 0px; padding: 0px; width: 833px;&quot;&gt;&lt;tbody style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top; width: 201px;&quot;&gt;实例&lt;/th&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;python&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配 &quot;python&quot;.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h4 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px; padding: 0px;&quot;&gt;字符类&lt;/h4&gt;&lt;table class=&quot;reference&quot; style=&quot;background-color: white; border-collapse: collapse; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 4px 0px; padding: 0px; width: 833px;&quot;&gt;&lt;tbody style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top; width: 201px;&quot;&gt;实例&lt;/th&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;[Pp]ython&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配 &quot;Python&quot; 或 &quot;python&quot;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;rub[ye]&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配 &quot;ruby&quot; 或 &quot;rube&quot;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;[aeiou]&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配中括号内的任意一个字母&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;[0-9]&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任何数字。类似于 [0123456789]&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;[a-z]&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任何小写字母&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;[A-Z]&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任何大写字母&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;[a-zA-Z0-9]&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任何字母及数字&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;[^aeiou]&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;除了aeiou字母以外的所有字符&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;[^0-9]&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配除了数字外的字符&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h4 style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 0px; padding: 0px;&quot;&gt;特殊字符类&lt;/h4&gt;&lt;table class=&quot;reference&quot; style=&quot;background-color: white; border-collapse: collapse; border: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Arial, sans-serif; font-size: 12px; margin: 4px 0px; padding: 0px; width: 833px;&quot;&gt;&lt;tbody style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top; width: 201px;&quot;&gt;实例&lt;/th&gt;&lt;th style=&quot;background-color: #555555; border: 1px solid rgb(85, 85, 85); color: white; margin: 0px; padding: 3px; text-align: left; vertical-align: top;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;.&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配除 &quot;\n&quot; 之外的任何单个字符。要匹配包括 &#39;\n&#39; 在内的任何字符，请使用象 &#39;[.\n]&#39; 的模式。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\d&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配一个数字字符。等价于 [0-9]。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\D&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配一个非数字字符。等价于 [^0-9]。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\s&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任何空白字符，包括空格、制表符、换页符等等。等价于 [ \f\n\r\t\v]。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\S&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任何非空白字符。等价于 [^ \f\n\r\t\v]。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background-color: #f6f4f0; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\w&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配包括下划线的任何单词字符。等价于&#39;[A-Za-z0-9_]&#39;。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;\W&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(212, 212, 212); font-size: 13px; line-height: 2em; margin: 0px; min-width: 24px; padding: 7px 5px; vertical-align: top;&quot;&gt;匹配任何非单词字符。等价于 &#39;[^A-Za-z0-9_]&#39;。&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/4460665900507534296/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/httpswww_29.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/4460665900507534296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/4460665900507534296'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/httpswww_29.html' title=''/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-1343275812824156594</id><published>2019-10-29T13:57:00.001+08:00</published><updated>2019-10-29T13:57:42.856+08:00</updated><title type='text'>python之正则sub函数split函数</title><content type='html'>&lt;br /&gt;文章轉自&amp;nbsp;&lt;a href=&quot;https://blog.csdn.net/GrofChen/article/details/93598605&quot;&gt;https://blog.csdn.net/GrofChen/article/details/93598605&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;article-header-box&quot; style=&quot;background-color: white; border-bottom: 1px solid rgb(224, 224, 224); box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 14px; font-variant-ligatures: common-ligatures; margin: 0px; outline: 0px; padding: 16px 0px 0px; z-index: 9;&quot;&gt;&lt;div class=&quot;article-header&quot; style=&quot;box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;div class=&quot;article-title-box&quot; style=&quot;box-sizing: inherit; margin: 0px 0px 8px; outline: 0px; padding: 0px;&quot;&gt;&lt;h1 class=&quot;title-article&quot; style=&quot;box-sizing: inherit; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 24px; margin: 0.67em 0px; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;python之正则sub函数split函数&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;article-info-box&quot; style=&quot;box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px 0px 14px; position: relative;&quot;&gt;&lt;div class=&quot;article-bar-top&quot; style=&quot;box-sizing: inherit; color: #858585; height: 24px; margin: 0px; outline: 0px; overflow: hidden; padding: 0px; width: 846.547px;&quot;&gt;&lt;span class=&quot;time&quot; style=&quot;box-sizing: inherit; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; margin: 0px 14px 0px 0px; outline: 0px; padding: 0px;&quot;&gt;2019-06-25 14:03:43&lt;/span&gt;&amp;nbsp;&lt;a class=&quot;follow-nickName&quot; href=&quot;https://me.csdn.net/GrofChen&quot; rel=&quot;noopener&quot; style=&quot;background-color: transparent; box-sizing: inherit; color: #78a5f1; cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; margin: 0px 14px 0px 0px; outline: 0px; padding: 0px; text-decoration-line: none !important;&quot; target=&quot;_blank&quot;&gt;GrofChen&lt;/a&gt;&amp;nbsp;&lt;span class=&quot;read-count&quot; style=&quot;box-sizing: inherit; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; margin: 0px 14px 0px 0px; outline: 0px; padding: 0px;&quot;&gt;阅读数 200&lt;/span&gt;&lt;span class=&quot;article_info_click&quot; style=&quot;box-sizing: inherit; color: #3399ea; cursor: pointer; display: inline-block; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 12px; letter-spacing: 0px; line-height: 20px; margin: 0px 14px 0px 0px; outline: 0px; padding: 0px; position: static; right: 101px; top: 0px; width: 45px;&quot;&gt;更多&lt;/span&gt;&lt;div class=&quot;tags-box space&quot; style=&quot;box-sizing: inherit; font-size: 12px; margin: 6px 0px 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;label&quot; style=&quot;box-sizing: inherit; color: #4d4d4d; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; margin: 0px 14px 0px 0px; outline: 0px; padding: 0px;&quot;&gt;分类专栏：&lt;/span&gt;&amp;nbsp;&lt;a class=&quot;tag-link&quot; href=&quot;https://blog.csdn.net/grofchen/article/category/9058355&quot; rel=&quot;noopener&quot; style=&quot;background-color: transparent; box-sizing: inherit; color: #79a5e5; cursor: pointer; display: inline-block; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; margin: 0px 24px 0px 0px; outline: 0px; overflow-wrap: break-word; padding: 0px; text-decoration-line: none !important;&quot; target=&quot;_blank&quot;&gt;Python高级&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;operating&quot; style=&quot;box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; position: absolute; right: 0px; top: 0px;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;article class=&quot;baidu_pl&quot; style=&quot;box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 14px; font-variant-ligatures: common-ligatures; margin: 0px; outline: 0px; padding: 16px 0px 0px; position: relative;&quot;&gt;&lt;div class=&quot;article_content clearfix&quot; id=&quot;article_content&quot; style=&quot;box-sizing: inherit; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;&lt;div class=&quot;article-copyright&quot; style=&quot;box-sizing: inherit; color: #999999; font-size: 12px; margin: 0px 0px 16px; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;&lt;span class=&quot;creativecommons&quot; style=&quot;box-sizing: inherit; color: #4d4d4d; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px; word-break: break-all;&quot;&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by-sa/4.0/&quot; rel=&quot;license&quot; style=&quot;box-sizing: inherit; color: #3399ea; cursor: pointer; font-size: 14px; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px; text-decoration-line: none !important;&quot;&gt;&lt;/a&gt;&lt;span style=&quot;box-sizing: inherit; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: text-bottom;&quot;&gt;版权声明：本文为博主原创文章，遵循&lt;a href=&quot;http://creativecommons.org/licenses/by-sa/4.0/&quot; rel=&quot;noopener&quot; style=&quot;box-sizing: inherit; color: #3399ea; cursor: pointer; font-size: 14px; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px; text-decoration-line: none !important;&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;CC 4.0 BY-SA&amp;nbsp;&lt;/a&gt;版权协议，转载请附上原文出处链接和本声明。&lt;/span&gt;&lt;div class=&quot;article-source-link2222&quot; style=&quot;box-sizing: inherit; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;本文链接：&lt;a href=&quot;https://blog.csdn.net/GrofChen/article/details/93598605&quot; style=&quot;box-sizing: inherit; color: #3399ea; cursor: pointer; font-size: 14px; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px; text-decoration-line: none !important;&quot;&gt;https://blog.csdn.net/GrofChen/article/details/93598605&lt;/a&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;markdown_views prism-atom-one-dark&quot; id=&quot;content_views&quot; style=&quot;box-sizing: inherit; margin: 0px; min-height: 70px; outline: 0px; overflow-wrap: break-word; padding: 0px; position: relative; word-break: break-word !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; color: #4d4d4d; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px; line-height: 26px; margin-bottom: 16px; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;re.sub函数用于将原字符串匹配的字符替换，替换的可以是字符串，也可以是函数&lt;br style=&quot;box-sizing: border-box; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot; /&gt;格式：re.sub(表达式，字符串，原字符串【,次数,标志位】)&lt;/div&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;background-color: #282c34; border: none; box-sizing: border-box; color: black; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 22px; margin-bottom: 24px; outline: 0px; overflow-wrap: break-word; overflow: auto hidden; padding: 8px 16px 6px 56px; position: relative;&quot;&gt;&lt;code class=&quot;has-numbering&quot; style=&quot;border-radius: 4px; box-sizing: border-box; color: #abb2bf; display: block; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 22px; margin: 0px; min-width: 94%; outline: 0px; overflow-wrap: break-word; overflow-x: auto; padding: 0.5em; position: unset; text-size-adjust: none;&quot;&gt;import re&lt;br /&gt;a = &quot;1234567abcdefg&quot;           # \D表示非数字字符&lt;br /&gt;s = re.sub(&#39;\D.*&#39;, &quot;890&quot;, a)   # \D.*即非数字字符开头的字符串&lt;br /&gt;print(s)&lt;br /&gt;&lt;/code&gt;&lt;ul class=&quot;pre-numbering&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px; left: 0px; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 8px 0px; position: absolute; text-align: right; top: 0px; width: 48px;&quot;&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;1&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;2&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;3&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;4&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style=&quot;box-sizing: border-box; color: #4d4d4d; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px; line-height: 26px; margin-bottom: 16px; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;&lt;img alt=&quot;在这里插入图片描述&quot; src=&quot;https://img-blog.csdnimg.cn/20190625103547897.png&quot; style=&quot;border-style: none; box-sizing: border-box; cursor: zoom-in; margin: 24px 0px; max-width: 100%; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot; /&gt;&lt;/div&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;background-color: #282c34; border: none; box-sizing: border-box; color: black; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 22px; margin-bottom: 24px; outline: 0px; overflow-wrap: break-word; overflow: auto hidden; padding: 8px 16px 6px 56px; position: relative;&quot;&gt;&lt;code class=&quot;has-numbering&quot; style=&quot;border-radius: 4px; box-sizing: border-box; color: #abb2bf; display: block; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 22px; margin: 0px; min-width: 94%; outline: 0px; overflow-wrap: break-word; overflow-x: auto; padding: 0.5em; position: unset; text-size-adjust: none;&quot;&gt;def one(matched):            # 参数为匹配对象&lt;br /&gt;    s =matched.group(&#39;num&#39;)  # 匹配的分组结果&lt;br /&gt;    return s.zfill(3)        # 对结果进行填充&lt;br /&gt; &lt;br /&gt;a =&#39;a1b2c3d4e5f6&#39;&lt;br /&gt;print(re.sub(&#39;(?P&amp;lt;num&amp;gt;\d)&#39;, one, a,3)) # \d为数字字符&lt;br /&gt;&lt;/code&gt;&lt;ul class=&quot;pre-numbering&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px; left: 0px; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 8px 0px; position: absolute; text-align: right; top: 0px; width: 48px;&quot;&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;1&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;2&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;3&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;4&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;5&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;6&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style=&quot;box-sizing: border-box; color: #4d4d4d; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px; line-height: 26px; margin-bottom: 16px; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;&lt;img alt=&quot;在这里插入图片描述&quot; src=&quot;https://img-blog.csdnimg.cn/2019062512513667.png&quot; style=&quot;border-style: none; box-sizing: border-box; cursor: zoom-in; margin: 24px 0px; max-width: 100%; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot; /&gt;&lt;br style=&quot;box-sizing: border-box; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot; /&gt;re.split函数用于将符串中匹配的字符分割为列表&lt;br style=&quot;box-sizing: border-box; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot; /&gt;格式：re.split(表达式，字符串【,次数,标志位】)&lt;/div&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;background-color: #282c34; border: none; box-sizing: border-box; color: black; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 22px; margin-bottom: 24px; outline: 0px; overflow-wrap: break-word; overflow: auto hidden; padding: 8px 16px 6px 56px; position: relative;&quot;&gt;&lt;code class=&quot;has-numbering&quot; style=&quot;border-radius: 4px; box-sizing: border-box; color: #abb2bf; display: block; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 22px; margin: 0px; min-width: 94%; outline: 0px; overflow-wrap: break-word; overflow-x: auto; padding: 0.5em; position: unset; text-size-adjust: none;&quot;&gt;import re&lt;br /&gt;a=&#39;i love chian&#39;&lt;br /&gt;print(re.split(&#39;\s&#39;, a))    # \s为空字符&lt;br /&gt;print(re.split(&#39;(\s)&#39;,a))   # 空字符也分为一组&lt;br /&gt;print(re.split(&#39;\s&#39;, a, 1)) # 分割次数为1&lt;br /&gt;print(re.split(&#39;\d&#39;, a))    # 匹配不到时不分割&lt;br /&gt;&lt;div class=&quot;hljs-button {2}&quot; data-title=&quot;复制&quot; style=&quot;background-color: white; border-radius: 4px; box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 4px, rgba(0, 0, 0, 0.05) 0px 2px 4px; box-sizing: border-box; color: #4d4d4d; cursor: pointer; font-size: inherit; margin: 2px 8px; outline: 0px; overflow-wrap: break-word; padding: 2px 8px; position: absolute; right: 4px; top: 4px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/code&gt;&lt;ul class=&quot;pre-numbering&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px; left: 0px; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 8px 0px; position: absolute; text-align: right; top: 0px; width: 48px;&quot;&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;1&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;2&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;3&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;4&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;5&lt;/li&gt;&lt;br /&gt;&lt;li style=&quot;border-right: 1px solid rgb(197, 197, 197); box-sizing: border-box; color: #999999; font-size: inherit; list-style: none; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0px 8px;&quot;&gt;6&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style=&quot;box-sizing: border-box; color: #4d4d4d; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px; line-height: 26px; margin-bottom: 16px; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;&lt;img alt=&quot;在这里插入图片描述&quot; src=&quot;https://img-blog.csdnimg.cn/20190625140033826.png&quot; style=&quot;border-style: none; box-sizing: border-box; cursor: zoom-in; margin: 24px 0px; max-width: 100%; outline: 0px; overflow-wrap: break-word; padding: 0px;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/article&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/1343275812824156594/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/pythonsubsplit.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/1343275812824156594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/1343275812824156594'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/pythonsubsplit.html' title='python之正则sub函数split函数'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-8397398687770822782</id><published>2019-10-29T13:55:00.001+08:00</published><updated>2019-10-29T13:55:44.239+08:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; import re&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; inputStr = &quot;hello 123 world 456&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; re.sub(&quot;\d+&quot;, &quot;222&quot;, inputStr)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&#39;hello 222 world 222&#39;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;-----------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; import re&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; inputStr = &quot;hello a123 world 456&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; re.sub(&quot;\d+&quot;, &quot;222&quot;, inputStr)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&#39;hello a222 world 222&#39;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;-----------------------------------------------------------------------&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/8397398687770822782/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/import-re-inputstr-hello-123-world-456.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/8397398687770822782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/8397398687770822782'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/import-re-inputstr-hello-123-world-456.html' title=''/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-8277348604672229715</id><published>2019-10-25T17:59:00.003+08:00</published><updated>2019-10-25T17:59:50.339+08:00</updated><title type='text'>出現錯誤訊息:   sed: -e expression #1, char 1: unknown command: `,&#39;</title><content type='html'>&lt;br /&gt;原程式語法 如下:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sed_function=&#39;&#39;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sed_function=${sed_function}&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&quot;&lt;/b&gt;&lt;/span&gt;sed &lt;b&gt;&#39;&lt;/b&gt;s&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;Messages reached \([0-9][0-9][0-9]\) which&lt;span style=&quot;color: magenta;&quot;&gt;&lt;b&gt;/&lt;/b&gt;&lt;/span&gt;Messages reached xxx which&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;g&lt;b&gt;&#39;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;出現下列錯誤:&lt;br /&gt;&lt;span style=&quot;background-color: #fce5cd; font-family: Verdana, sans-serif;&quot;&gt;sed: -e expression #1, char 1: unknown command: `&#39;&#39;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;解決方法 修正如下:&amp;nbsp; 將 &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot;&amp;nbsp; &amp;nbsp;&quot;&lt;/span&gt; &lt;/span&gt;改為&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;${&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sed_function=&#39;&#39;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sed_function=${sed_function}&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;${&amp;nbsp;&lt;/span&gt;&lt;/b&gt;sed &#39;s&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;Messages reached \([0-9][0-9][0-9]\) which&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;Messages reached xxx which&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;g&#39;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;解決方法 來自下列文章&lt;br /&gt;&lt;br /&gt;文章轉自&amp;nbsp;&lt;a href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command&quot;&gt;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;grid sm:fd-column&quot; id=&quot;question-header&quot; style=&quot;border: 0px; box-sizing: inherit; display: flex; flex-flow: row nowrap; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; justify-content: space-between; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;h1 class=&quot;grid--cell fs-headline1 fl1 ow-break-word mb8&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #242729; flex: 1 1 auto !important; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 2.07692rem !important; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-weight: inherit; line-height: 1.3; margin-bottom: 8px !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-wrap: break-word !important; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;question-hyperlink&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command&quot; style=&quot;border: 0px; box-sizing: inherit; color: #242729; cursor: pointer; font-size: 2.07692rem; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.35; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;`sed: -e expression #1, char 1: unknown command: `,&#39;`&amp;nbsp;&lt;/a&gt;&lt;/h1&gt;&lt;div class=&quot;ml12 aside-cta grid--cell print:d-none sm:ml0 sm:mb12 sm:order-first sm:as-end&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0px; margin-left: 12px !important; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;ws-nowrap s-btn s-btn__primary&quot; href=&quot;https://stackoverflow.com/questions/ask&quot; style=&quot;background-color: #0095ff; background-image: none; border-radius: 3px; border: 1px solid rgb(0, 119, 204); box-shadow: rgba(102, 191, 255, 0.75) 0px 1px 0px 0px inset, rgba(0, 149, 255, 0) 0px 0px 0px 0px; box-sizing: inherit; color: white; cursor: pointer; display: inline-block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.15385; margin: 0px; outline: none; padding: 0.8em; position: relative; text-align: center; text-decoration-line: none; vertical-align: baseline; white-space: nowrap !important;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;問問題&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;grid fw-wrap pb8 mb16 bb bc-black-2&quot; style=&quot;border-bottom: 1px solid rgb(228, 230, 232) !important; border-image: initial; border-left-color: rgb(228, 230, 232) !important; border-left-style: initial; border-left-width: 0px; border-right-color: rgb(228, 230, 232) !important; border-right-style: initial; border-right-width: 0px; border-top-color: rgb(228, 230, 232) !important; border-top-style: initial; border-top-width: 0px; box-sizing: inherit; display: flex; flex-wrap: wrap !important; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 16px !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 8px !important; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;grid--cell ws-nowrap mr16 mb8&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 8px !important; margin-left: 0px; margin-right: 16px !important; margin-top: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap !important;&quot; title=&quot;2016-12-28 05：03：50Z&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div aria-label=&quot;問題與答案&quot; id=&quot;mainbar&quot; role=&quot;main&quot; style=&quot;border: 0px; box-sizing: inherit; float: left; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; width: calc((100% - 300px) - 24px);&quot;&gt;&lt;div class=&quot;question&quot; data-questionid=&quot;41355635&quot; id=&quot;question&quot; style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;post-layout&quot; style=&quot;border: 0px; box-sizing: border-box; display: grid; flex-wrap: wrap; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-template-columns: max-content 1fr; justify-content: flex-end; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;votecell post-layout--left&quot; style=&quot;border: 0px; box-sizing: inherit; flex-grow: 0; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-column: 1 / auto; line-height: inherit; margin: 0px; padding: 0px 15px 0px 0px; vertical-align: top; width: auto;&quot;&gt;&lt;div class=&quot;js-voting-container grid fd-column ai-stretch gs4 fc-black-200&quot; data-post-id=&quot;41355635&quot; style=&quot;align-items: stretch !important; border: 0px; box-sizing: inherit; color: rgb(187, 192, 196) !important; display: flex; flex-direction: column !important; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: -2px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;button aria-label=&quot;投票&quot; aria-pressed=&quot;false&quot; class=&quot;js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer&quot; data-selected-classes=&quot;fc-theme-primary&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-color: initial; border-radius: 3px; border-style: none; border-width: initial; box-shadow: none; box-sizing: inherit; font: inherit; margin: 2px; outline: none; padding: 0px; position: relative;&quot; title=&quot;這個問題說明了研究工作； 這是有用的和明確的&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; class=&quot;svg-icon m0 iconArrowUpLg&quot; height=&quot;36&quot; viewbox=&quot;0 0 36 36&quot; width=&quot;36&quot;&gt;&lt;path d=&quot;M2 26h32L18 10 2 26z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;div class=&quot;js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center&quot; data-value=&quot;1&quot; itemprop=&quot;upvoteCount&quot; style=&quot;align-items: center !important; border: 0px; box-sizing: inherit; color: rgb(106, 115, 124) !important; display: flex; flex-direction: column !important; font-family: inherit; font-size: 1.61538rem !important; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 2px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;1個&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;button aria-label=&quot;否決&quot; aria-pressed=&quot;false&quot; class=&quot;js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer&quot; data-selected-classes=&quot;fc-theme-primary&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-color: initial; border-radius: 3px; border-style: none; border-width: initial; box-shadow: none; box-sizing: inherit; font: inherit; margin: 2px; outline: none; padding: 0px; position: relative;&quot; title=&quot;這個問題沒有顯示出任何研究成果； 不清楚或沒有用&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; class=&quot;svg-icon m0 iconArrowDownLg&quot; height=&quot;36&quot; viewbox=&quot;0 0 36 36&quot; width=&quot;36&quot;&gt;&lt;path d=&quot;M2 10h32L18 26 2 10z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;button aria-label=&quot;喜愛&quot; aria-pressed=&quot;false&quot; class=&quot;js-favorite-btn s-btn s-btn__unset c-pointer py8&quot; data-selected-classes=&quot;fc-yellow-600&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-color: initial; border-radius: 3px; border-style: none; border-width: initial; box-shadow: none; box-sizing: inherit; font: inherit; margin: 0px; outline: none; padding: 0px; position: relative;&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; class=&quot;svg-icon iconStar&quot; height=&quot;18&quot; viewbox=&quot;0 0 18 18&quot; width=&quot;18&quot;&gt;&lt;path d=&quot;M9 12.65l-5.29 3.63 1.82-6.15L.44 6.22l6.42-.17L9 0l2.14 6.05 6.42.17-5.1 3.9 1.83 6.16L9 12.65z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;div class=&quot;js-favorite-count mt8&quot; data-value=&quot;&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 8px !important; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;postcell post-layout--right&quot; style=&quot;border: 0px; box-sizing: inherit; flex-shrink: 1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-column: 2 / auto; line-height: inherit; margin: 0px; min-width: 0px; padding: 0px; vertical-align: top; width: auto;&quot;&gt;&lt;div class=&quot;post-text&quot; itemprop=&quot;text&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1.3; margin: 0px 0px 5px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline; width: 676px;&quot;&gt;&lt;div class=&quot;question-status question-originals-of-duplicate&quot; style=&quot;background-color: #fff7e5; background-image: none; border: 1px solid rgba(83, 90, 96, 0.1); box-sizing: inherit; clear: both; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 10px 0px; padding: 10px; vertical-align: baseline; width: auto;&quot;&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: bold; line-height: inherit; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;這個問題已經在這裡有了答案：&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-type: none; margin: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a dir=&quot;ltr&quot; href=&quot;https://stackoverflow.com/questions/10067266/when-to-wrap-quotes-around-a-shell-variable&quot; style=&quot;border: 0px; box-sizing: inherit; color: #005999; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;何時將引號括在shell變量周圍？&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;span class=&quot;question-originals-answer-count&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px 0px 0px 5px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;5個答案&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;從CYGWIN中的shell腳本運行上述命令時，出現以下錯誤。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;錯誤：&lt;/span&gt;&lt;/div&gt;&lt;blockquote style=&quot;background-color: cornsilk; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: rgb(255, 235, 142); border-left-style: solid; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 0px 2px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; padding: 10px; quotes: none; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; margin-bottom: 0px; vertical-align: inherit;&quot;&gt;sed：-e表達式＃1，字符1：未知命令：`，&#39;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;如果我在cmd中運行了命令：&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;lang-sh prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border-radius: 3px; border: 0px; box-sizing: inherit; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$ sed &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;n &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;8937,8946 p&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;/cygdrive/c/TEMP/temp_oracle/alert_cert1_copy.log&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; egrep &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;e &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;ORA-|Shutting down&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;它可以正常工作-結果：&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;lang-sh prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border-radius: 3px; border: 0px; box-sizing: inherit; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ORA&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1623&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; signalled during&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; ALTER DATABASE DROP LOGFILE GROUP &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1.&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;..&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; box-sizing: inherit; color: #2b91af; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Shutting&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; down database&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;注意：&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;8937&lt;/code&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;＆&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;8946&lt;/code&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;是文本文件中的行號-需要在其中檢查模式。&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;搜索必須在這些行之間。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;如果我從shell腳本中運行命令-出現上述錯誤。&lt;/span&gt;&lt;/div&gt;&lt;hr style=&quot;background-color: #d6d9dc; border: 0px; box-sizing: inherit; color: #d6d9dc; height: 1px; margin-bottom: 20px;&quot; /&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;Shell腳本：&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;lang-sh prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border-radius: 3px; border: 0px; box-sizing: inherit; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;    export alert_file&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;/cygdrive/c/TEMP/temp_oracle/alert_cert1_copy.log&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;    export alert_output&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;/cygdrive/c/cygwin64/home/alert_out.log&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: inherit; color: #101094; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; searchAlertByFilterLN&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;border: 0px; box-sizing: inherit; color: #858c93; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#err1=$(sed -n &quot;${lastLineNum},${totLines} p&quot; $alert_file | egrep -e &quot;ORA-&quot;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;            err1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;sed &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;n &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;8937,8946 p&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_file &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; egrep &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;e &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;ORA-|Shutting down&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;                &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: inherit; color: #101094; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;n &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$err1&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;];&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: inherit; color: #101094; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;then&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;  &lt;br /&gt;                echo &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;e &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;Errors found:&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_output&lt;br /&gt;                echo &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;------------&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_output&lt;br /&gt;                sed &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;n &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;8937,8946 p&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_file &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; egrep &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;e &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;ORA-|Shutting down&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_output&lt;br /&gt;                echo &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_output&lt;br /&gt;                echo &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_output&lt;br /&gt;                echo &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;e &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;Check the details of the errors below. (Details means the surroundig lines of the error message only)&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_output&lt;br /&gt;                echo  &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;-------------------------------------&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_output&lt;br /&gt;                sed &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;n &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;8937,8946 p&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_file &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;usr&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;bin&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;egrep &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;A &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;B &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;ORA-|Shutting down&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_output&lt;br /&gt;                &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: inherit; color: #101094; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;fi&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;searchAlertByFilterLN &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;echo &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;function was executed&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;帶著敬意！&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;post-taglist grid gs4 gsy fd-column&quot; style=&quot;border: 0px; box-sizing: inherit; clear: both; display: flex; flex-direction: column !important; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: -2px 0px 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;grid ps-relative d-block&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 2px 0px; padding: 0px; position: relative !important; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;post-tag js-gps-track&quot; href=&quot;https://stackoverflow.com/questions/tagged/linux&quot; rel=&quot;tag&quot; style=&quot;background-color: #e1ecf4; border-radius: 3px; border: 1px solid rgb(225, 236, 244); box-sizing: inherit; color: #39739d; cursor: pointer; display: inline-block; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1; margin: 2px 2px 2px 0px; padding: 0.4em 0.5em; text-align: center; text-decoration-line: none; transition: all 0.15s ease-in-out 0s; vertical-align: baseline; white-space: nowrap;&quot; title=&quot;顯示標記為“ linux”的問題&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;linux&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;a class=&quot;post-tag js-gps-track&quot; href=&quot;https://stackoverflow.com/questions/tagged/bash&quot; rel=&quot;tag&quot; style=&quot;background-color: #e1ecf4; border-radius: 3px; border: 1px solid rgb(225, 236, 244); box-sizing: inherit; color: #39739d; cursor: pointer; display: inline-block; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1; margin: 2px 2px 2px 0px; padding: 0.4em 0.5em; text-align: center; text-decoration-line: none; transition: all 0.15s ease-in-out 0s; vertical-align: baseline; white-space: nowrap;&quot; title=&quot;顯示標記為“ bash”的問題&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;bash&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;a class=&quot;post-tag js-gps-track&quot; href=&quot;https://stackoverflow.com/questions/tagged/shell&quot; rel=&quot;tag&quot; style=&quot;background-color: #e1ecf4; border-radius: 3px; border: 1px solid rgb(225, 236, 244); box-sizing: inherit; color: #39739d; cursor: pointer; display: inline-block; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1; margin: 2px 2px 2px 0px; padding: 0.4em 0.5em; text-align: center; text-decoration-line: none; transition: all 0.15s ease-in-out 0s; vertical-align: baseline; white-space: nowrap;&quot; title=&quot;顯示標記為“ shell”的問題&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;shell&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;a class=&quot;post-tag js-gps-track&quot; href=&quot;https://stackoverflow.com/questions/tagged/sed&quot; rel=&quot;tag&quot; style=&quot;background-color: #e1ecf4; border-radius: 3px; border: 1px solid rgb(225, 236, 244); box-sizing: inherit; color: #39739d; cursor: pointer; display: inline-block; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1; margin: 2px 2px 2px 0px; padding: 0.4em 0.5em; text-align: center; text-decoration-line: none; transition: all 0.15s ease-in-out 0s; vertical-align: baseline; white-space: nowrap;&quot; title=&quot;顯示標記為“ sed”的問題&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;sed&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;a class=&quot;post-tag js-gps-track&quot; href=&quot;https://stackoverflow.com/questions/tagged/cygwin&quot; rel=&quot;tag&quot; style=&quot;background-color: #e1ecf4; border-radius: 3px; border: 1px solid rgb(225, 236, 244); box-sizing: inherit; color: #39739d; cursor: pointer; display: inline-block; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1; margin: 2px 2px 2px 0px; padding: 0.4em 0.5em; text-align: center; text-decoration-line: none; transition: all 0.15s ease-in-out 0s; vertical-align: baseline; white-space: nowrap;&quot; title=&quot;顯示標記為“ cygwin”的問題&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;cygwin&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;mb0 &quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;mt16 grid gs8 gsy fw-wrap jc-end ai-start pt4&quot; style=&quot;align-items: flex-start !important; border: 0px; box-sizing: inherit; display: flex; flex-wrap: wrap !important; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; justify-content: flex-end !important; line-height: inherit; margin-bottom: -4px; margin-left: 0px; margin-right: 0px; margin-top: 16px !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 4px !important; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;grid--cell mr16&quot; style=&quot;border: 0px; box-sizing: inherit; flex: 1 1 100px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 4px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;post-menu&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 2px 0px 0px; vertical-align: baseline;&quot;&gt;&lt;a aria-controls=&quot;se-share-sheet-0&quot; class=&quot;js-share-link&quot; data-action=&quot; s-popover#toggle se-share-sheet#preventNavigation s-popover:show-&amp;gt;se-share-sheet#willShow s-popover:shown-&amp;gt;se-share-sheet#didShow&quot; data-controller=&quot;se-share-sheet s-popover&quot; data-s-popover-placement=&quot;bottom-start&quot; data-se-share-sheet-location=&quot;1&quot; data-se-share-sheet-post-type=&quot;question&quot; data-se-share-sheet-social=&quot;facebook twitter devto&quot; data-se-share-sheet-subtitle=&quot;&quot; data-se-share-sheet-title=&quot;Share a link to this question&quot; href=&quot;https://stackoverflow.com/q/41355635&quot; itemprop=&quot;url&quot; style=&quot;border: 0px; box-sizing: inherit; color: #848d95; cursor: pointer; display: inline-block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px 4px 2px; text-decoration-line: none; vertical-align: baseline;&quot; title=&quot;這個問題的簡短永久鏈接&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;分享&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;box-sizing: inherit; display: inline-block; vertical-align: inherit;&quot;&gt;&lt;span class=&quot;lsep&quot; style=&quot;border: 0px; box-sizing: inherit; color: #1b4072; font-family: inherit; font-size: 1px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; visibility: hidden;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;a class=&quot;suggest-edit-post&quot; href=&quot;https://stackoverflow.com/posts/41355635/edit&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot; title=&quot;&quot;&gt;改善這個問題&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;lsep&quot; style=&quot;border: 0px; box-sizing: inherit; color: #1b4072; display: inline-block; font-family: inherit; font-size: 1px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; visibility: hidden;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;a class=&quot;suggest-edit-post&quot; href=&quot;https://stackoverflow.com/posts/41355635/edit&quot; style=&quot;border: 0px; box-sizing: inherit; color: #848d95; cursor: pointer; display: inline-block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px 4px 2px; text-decoration-line: none; vertical-align: baseline;&quot; title=&quot;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;post-signature grid--cell&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 4px 0px; padding: 0px; vertical-align: top; width: 200px;&quot;&gt;&lt;div class=&quot;user-info &quot; style=&quot;border: 0px; box-sizing: border-box; color: #6a737c; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 5px 6px 7px 7px; vertical-align: baseline; width: 200px;&quot;&gt;&lt;div class=&quot;user-action-time&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1px 0px 4px; padding: 0px; vertical-align: baseline; white-space: nowrap;&quot;&gt;&lt;a href=&quot;https://stackoverflow.com/posts/41355635/revisions&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot; title=&quot;顯示對此帖子的所有修改&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span class=&quot;relativetime&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;2016-12-28 05：40：05Z&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;16年12月28日於5:40&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;編輯&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;relativetime&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;2016-12-28 05：40：05Z&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;user-gravatar32&quot; style=&quot;border-radius: 1px; border: 0px; box-sizing: inherit; float: left; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: 32px; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; width: 32px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;user-details&quot; itemprop=&quot;author&quot; itemscope=&quot;&quot; itemtype=&quot;http://schema.org/Person&quot; style=&quot;border: 0px; box-sizing: inherit; float: left; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 17px; margin: 0px 0px 0px 8px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline; width: calc(100% - 40px);&quot;&gt;&lt;div class=&quot;-flair&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;post-signature owner grid--cell&quot; style=&quot;background-color: #e1ecf4; border-radius: 3px; border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 4px 0px; padding: 0px; vertical-align: top; width: 200px;&quot;&gt;&lt;div class=&quot;user-info &quot; style=&quot;border: 0px; box-sizing: border-box; color: #6a737c; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 5px 6px 7px 7px; vertical-align: baseline; width: 200px;&quot;&gt;&lt;div class=&quot;user-action-time&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1px 0px 4px; padding: 0px; vertical-align: baseline; white-space: nowrap;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;問&lt;/span&gt;&lt;span class=&quot;relativetime&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;2016-12-28 05：03：50Z&quot;&gt;16年12月28日在5:03&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;user-gravatar32&quot; style=&quot;border-radius: 1px; border: 0px; box-sizing: inherit; float: left; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: 32px; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; width: 32px;&quot;&gt;&lt;a href=&quot;https://stackoverflow.com/users/6172639/bulat-makhmutov&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;gravatar-wrapper-32&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: 32px; line-height: inherit; margin: 0px; overflow: hidden; padding: 0px; vertical-align: baseline; width: 32px;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;bar-sm&quot; height=&quot;32&quot; src=&quot;https://www.gravatar.com/avatar/6f4bd13ce574859697091799a10e7845?s=32&amp;amp;d=identicon&amp;amp;r=PG&amp;amp;f=1&quot; style=&quot;border-radius: 1px; border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: 32px; line-height: inherit; margin: 0px auto; padding: 0px; vertical-align: baseline; width: 32px;&quot; width=&quot;32&quot; /&gt;&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;user-details&quot; itemprop=&quot;author&quot; itemscope=&quot;&quot; itemtype=&quot;http://schema.org/Person&quot; style=&quot;border: 0px; box-sizing: inherit; float: left; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 17px; margin: 0px 0px 0px 8px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline; width: calc(100% - 40px);&quot;&gt;&lt;a href=&quot;https://stackoverflow.com/users/6172639/bulat-makhmutov&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;布拉特·馬赫穆托夫&lt;/a&gt;&lt;div class=&quot;-flair&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;reputation-score&quot; dir=&quot;ltr&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: bold; line-height: inherit; margin: 0px 2px 0px 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;聲譽得分 &quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;11&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span aria-hidden=&quot;true&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 3px 0px 2px; padding: 0px; vertical-align: baseline;&quot; title=&quot;3枚青銅徽章&quot;&gt;&lt;span class=&quot;badge3&quot; style=&quot;background-image: url(&amp;quot;../../Img/unified/sprites.svg?v=e5e58ae7df45&amp;quot;), none; background-position: -62px -398px; background-repeat: no-repeat; background-size: initial; border: 0px; box-sizing: inherit; display: inline-block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: 14px; line-height: inherit; margin: 0px 3px 0px 2px; overflow: hidden; padding: 0px; vertical-align: text-bottom; width: 6px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;badgecount&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;v-visible-sr&quot; style=&quot;border: 0px; box-sizing: inherit; clip-path: inset(50%); clip: rect(1px, 1px, 1px, 1px); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: 1px; line-height: inherit; margin: -1px 3px -1px 2px; overflow-wrap: normal; overflow: hidden; padding: 0px; position: absolute; vertical-align: baseline; width: 1px;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;3枚青銅徽章&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;js-post-notices post-layout--full&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-column: 1 / 3; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; width: 727px;&quot;&gt;&lt;div class=&quot;special-status&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px 0px 10px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;question-status&quot; style=&quot;background-color: #fff7e5; border: 1px solid rgba(83, 90, 96, 0.1); box-sizing: inherit; clear: both; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 15px 0px 10px; padding: 15px 8px 1px 60px; vertical-align: baseline;&quot;&gt;&lt;h2 style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 15px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: 18px; margin: 0px 0px 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;被&lt;/span&gt;&lt;span class=&quot;nowrap&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;&quot;&gt;&lt;a href=&quot;https://stackoverflow.com/users/874188/tripleee&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;三方&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;b style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;標記&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;為重複&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;nowrap&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;&quot;&gt;&lt;a href=&quot;https://stackoverflow.com/users/874188/tripleee&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;dupe-hammer-message-hover hover-bound&quot; style=&quot;border: 0px; box-sizing: inherit; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0px 4px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;badge-tag&quot; href=&quot;https://stackoverflow.com/badges/tag-badges/bash?badgeClass=Gold&quot; style=&quot;background-color: #eff0f1; border-radius: 4px; border: 1px solid rgb(214, 217, 220); box-sizing: inherit; color: #535a60; cursor: pointer; display: inline-block; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1; margin: 0px 3px 3px 0px; padding: 0.4em 0.8em 0.4em 0.4em; text-decoration-line: none; transition: background-color 0.15s ease-in-out 0s, border 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;span class=&quot;badge1&quot; style=&quot;background-image: url(&amp;quot;../../Img/unified/sprites.svg?v=e5e58ae7df45&amp;quot;), none; background-position: -102px -398px; background-repeat: no-repeat; background-size: initial; border: 0px; box-sizing: inherit; display: inline-block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: 14px; line-height: inherit; margin: 0px 3px 0px 2px; overflow: hidden; padding: 0px; vertical-align: text-bottom; width: 6px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&amp;nbsp;bash&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span dir=&quot;ltr&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;relativetime&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;2019-09-30 05：31：59Z&quot;&gt;9月30日在5:31&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;這個問題已經問過了，已經有了答案。&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;如果這些答案不能完全解決您的問題，請&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://stackoverflow.com/questions/ask&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;提出一個新問題&lt;/a&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;。&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;post-layout--right&quot; style=&quot;border: 0px; box-sizing: inherit; flex-shrink: 1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-column: 2 / auto; line-height: inherit; margin: 0px; min-width: 0px; padding: 0px; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;comments js-comments-container bt bc-black-2 mt12 &quot; data-min-length=&quot;15&quot; data-post-id=&quot;41355635&quot; id=&quot;comments-41355635&quot; style=&quot;-webkit-tap-highlight-color: rgba(255, 255, 255, 0); border-bottom-color: rgb(228, 230, 232) !important; border-bottom-style: initial; border-bottom-width: 0px; border-image: initial; border-left-color: rgb(228, 230, 232) !important; border-left-style: initial; border-left-width: 0px; border-right-color: rgb(228, 230, 232) !important; border-right-style: initial; border-right-width: 0px; border-top: 1px solid rgb(228, 230, 232) !important; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 12px !important; padding: 0px 0px 10px; vertical-align: baseline; width: 676px;&quot;&gt;&lt;ul class=&quot;comments-list js-comments-list&quot; data-addlink-disabled=&quot;true&quot; data-canpost=&quot;false&quot; data-cansee=&quot;true&quot; data-comments-unavailable=&quot;false&quot; data-remaining-comments-count=&quot;2&quot; style=&quot;border: 0px; box-sizing: inherit; display: grid; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-template-columns: max-content 1fr; line-height: inherit; list-style: none; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li class=&quot;comment js-comment &quot; data-comment-id=&quot;69913059&quot; id=&quot;comment-69913059&quot; style=&quot;border: 0px; box-sizing: inherit; display: contents; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: background-color 2s linear 0s; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;js-comment-actions comment-actions&quot; style=&quot;align-content: flex-start; border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: inherit; display: grid; flex-shrink: 0; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-template-columns: repeat(2, max-content); line-height: inherit; margin: 0px; padding: 6px 2px 6px 0px; transition: background-color 2s linear 0s; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;comment-score js-comment-edit-hide&quot; style=&quot;border: 0px; box-sizing: inherit; display: inline-block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; min-width: 16px; padding: 0px 4px 0px 0px; vertical-align: baseline; width: auto;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;comment-text js-comment-text-and-form&quot; style=&quot;border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: inherit; flex-basis: 0px; flex-grow: 1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1.3; margin: 0px; min-width: 0px; padding: 6px; transition: background-color 2s linear 0s; vertical-align: text-top;&quot;&gt;&lt;div class=&quot;comment-body js-comment-edit-hide&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;comment-copy&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;複製粘貼腳本的內容，以及如何運行腳本？&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&amp;nbsp;–&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;comment-date&quot; dir=&quot;ltr&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;comment-link&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command#comment69913059_41355635&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;relativetime-clean&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;2016-12-28 05：09：44Z&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;年16&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;年&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;comment-date&quot; dir=&quot;ltr&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;comment-link&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command#comment69913059_41355635&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;relativetime-clean&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;2016-12-28 05：09：44Z&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;12月28日&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;a class=&quot;comment-user&quot; href=&quot;https://stackoverflow.com/users/5291015/inian&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline; white-space: nowrap;&quot; title=&quot;45,910信譽&quot;&gt;&amp;nbsp;Inian&amp;nbsp;&lt;/a&gt;&lt;span class=&quot;comment-date&quot; dir=&quot;ltr&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;comment-link&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command#comment69913059_41355635&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;5:09&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;comment js-comment &quot; data-comment-id=&quot;69913237&quot; id=&quot;comment-69913237&quot; style=&quot;border: 0px; box-sizing: inherit; display: contents; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: background-color 2s linear 0s; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;js-comment-actions comment-actions&quot; style=&quot;align-content: flex-start; border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: inherit; display: grid; flex-shrink: 0; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-template-columns: repeat(2, max-content); line-height: inherit; margin: 0px; padding: 6px 2px 6px 0px; transition: background-color 2s linear 0s; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;comment-score js-comment-edit-hide&quot; style=&quot;border: 0px; box-sizing: inherit; display: inline-block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; min-width: 16px; padding: 0px 4px 0px 0px; vertical-align: baseline; width: auto;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;comment-text js-comment-text-and-form&quot; style=&quot;border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: inherit; flex-basis: 0px; flex-grow: 1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1.3; margin: 0px; min-width: 0px; padding: 6px; transition: background-color 2s linear 0s; vertical-align: text-top;&quot;&gt;&lt;div class=&quot;comment-body js-comment-edit-hide&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;comment-copy&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;不要讓我們猜測，向您展示失敗的實際腳本代碼。&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;我敢打賭，您正在使用&lt;/span&gt;&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;sed -n &quot;$startLineNo,$endLineNo p&quot; file&lt;/code&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;或類似方法，或者var拼寫錯誤，或者由於其他原因一個或兩個都沒有值。&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;您是否了解Shell調試模式，並帶有&lt;/span&gt;&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;set -vx&lt;/code&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;（和&lt;/span&gt;&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;set +vx&lt;/code&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;關閉）。&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;作為執行這將顯示你的線&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;與&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;它們的值代替變量。&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;祝好運。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&amp;nbsp;–&amp;nbsp;&lt;/span&gt;&lt;a class=&quot;comment-user&quot; href=&quot;https://stackoverflow.com/users/620097/shellter&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline; white-space: nowrap;&quot; title=&quot;30,684信譽&quot;&gt;shellter&amp;nbsp;&lt;/a&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span class=&quot;comment-date&quot; dir=&quot;ltr&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;comment-link&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command#comment69913237_41355635&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;relativetime-clean&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;2016-12-28 05：17：41Z&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;16&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;年&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;comment-date&quot; dir=&quot;ltr&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;comment-link&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command#comment69913237_41355635&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;12月28日在5:17&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;comment js-comment &quot; data-comment-id=&quot;69913295&quot; id=&quot;comment-69913295&quot; style=&quot;border: 0px; box-sizing: inherit; display: contents; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: background-color 2s linear 0s; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;js-comment-actions comment-actions&quot; style=&quot;align-content: flex-start; border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: inherit; display: grid; flex-shrink: 0; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-template-columns: repeat(2, max-content); line-height: inherit; margin: 0px; padding: 6px 2px 6px 0px; transition: background-color 2s linear 0s; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;comment-score js-comment-edit-hide&quot; style=&quot;border: 0px; box-sizing: inherit; display: inline-block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; min-width: 16px; padding: 0px 4px 0px 0px; vertical-align: baseline; width: auto;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;comment-text js-comment-text-and-form&quot; style=&quot;border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: inherit; flex-basis: 0px; flex-grow: 1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1.3; margin: 0px; min-width: 0px; padding: 6px; transition: background-color 2s linear 0s; vertical-align: text-top;&quot;&gt;&lt;div class=&quot;comment-body js-comment-edit-hide&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;comment-copy&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;另外，請閱讀&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://stackoverflow.com/help/how-to-ask&quot; style=&quot;border: 0px; box-sizing: inherit; color: #005999; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;stackoverflow.com/help/how-to-ask&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;，&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://stackoverflow.com/help/dont-ask&quot; style=&quot;border: 0px; box-sizing: inherit; color: #005999; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;stackoverflow.com/help/dont-ask&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;，&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://stackoverflow.com/help/mcve&quot; style=&quot;border: 0px; box-sizing: inherit; color: #005999; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;stackoverflow.com/help/mcve&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&amp;nbsp;並採取&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://stackoverflow.com/tour&quot; style=&quot;border: 0px; box-sizing: inherit; color: #005999; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;旅遊&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;張貼在這裡更多Qs的面前。&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;祝好運。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&amp;nbsp;–&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;a class=&quot;comment-user&quot; href=&quot;https://stackoverflow.com/users/620097/shellter&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline; white-space: nowrap;&quot; title=&quot;30,684信譽&quot;&gt;剝殼機機&#39;16&amp;nbsp;&lt;/a&gt;&lt;span class=&quot;comment-date&quot; dir=&quot;ltr&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;comment-link&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command#comment69913295_41355635&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;Dec 28&#39;在5:20&lt;/a&gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;此評論已被編輯1次&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; class=&quot;svg-icon va-text-bottom o50 iconPencilSm&quot; height=&quot;14&quot; viewbox=&quot;0 0 14 14&quot; width=&quot;14&quot;&gt;&lt;path d=&quot;M11.1 1.71l1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0zM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;comment js-comment &quot; data-comment-id=&quot;69913779&quot; id=&quot;comment-69913779&quot; style=&quot;border: 0px; box-sizing: inherit; display: contents; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: background-color 2s linear 0s; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;js-comment-actions comment-actions&quot; style=&quot;align-content: flex-start; border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: inherit; display: grid; flex-shrink: 0; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-template-columns: repeat(2, max-content); line-height: inherit; margin: 0px; padding: 6px 2px 6px 0px; transition: background-color 2s linear 0s; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;comment-score js-comment-edit-hide&quot; style=&quot;border: 0px; box-sizing: inherit; display: inline-block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; min-width: 16px; padding: 0px 4px 0px 0px; vertical-align: baseline; width: auto;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;comment-text js-comment-text-and-form&quot; style=&quot;border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: inherit; flex-basis: 0px; flex-grow: 1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1.3; margin: 0px; min-width: 0px; padding: 6px; transition: background-color 2s linear 0s; vertical-align: text-top;&quot;&gt;&lt;div class=&quot;comment-body js-comment-edit-hide&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;comment-copy&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;庇護所，我已經閱讀了很多與網站政策不符的問題，所以請。&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&amp;nbsp;–&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;a class=&quot;comment-user owner&quot; href=&quot;https://stackoverflow.com/users/6172639/bulat-makhmutov&quot; style=&quot;background-color: #e1ecf4; border-radius: 3px; border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; text-decoration-line: none; vertical-align: baseline; white-space: nowrap;&quot; title=&quot;11點聲望&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;布拉特·馬赫穆托夫&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;span class=&quot;comment-date&quot; dir=&quot;ltr&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;comment-link&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command#comment69913779_41355635&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;16年12月28日在5:43&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;comment js-comment &quot; data-comment-id=&quot;69913975&quot; id=&quot;comment-69913975&quot; style=&quot;border: 0px; box-sizing: inherit; display: contents; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: background-color 2s linear 0s; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;js-comment-actions comment-actions&quot; style=&quot;align-content: flex-start; border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: inherit; display: grid; flex-shrink: 0; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-template-columns: repeat(2, max-content); line-height: inherit; margin: 0px; padding: 6px 2px 6px 0px; transition: background-color 2s linear 0s; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;comment-score js-comment-edit-hide&quot; style=&quot;border: 0px; box-sizing: inherit; display: inline-block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; min-width: 16px; padding: 0px 4px 0px 0px; vertical-align: baseline; width: auto;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;comment-text js-comment-text-and-form&quot; style=&quot;border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: inherit; flex-basis: 0px; flex-grow: 1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1.3; margin: 0px; min-width: 0px; padding: 6px; transition: background-color 2s linear 0s; vertical-align: text-top;&quot;&gt;&lt;div class=&quot;comment-body js-comment-edit-hide&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;comment-copy&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;@bulatmakhmutov：可以將這行更改&lt;/span&gt;&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;sed -n &quot;8937,8946 p&quot; $alert_file&lt;/code&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;為&lt;/span&gt;&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;sed -n &quot;8937,8946 p&quot; &quot;$alert_file&quot;&lt;/code&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;帶有適當的雙引號引起的聲音&lt;/span&gt;&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;$alert_file&lt;/code&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;嗎？&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;您可以圍繞腳本中的所有實例執行此操作，然後嘗試嗎？&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&amp;nbsp;–&amp;nbsp;&lt;/span&gt;&lt;a class=&quot;comment-user&quot; href=&quot;https://stackoverflow.com/users/5291015/inian&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline; white-space: nowrap;&quot; title=&quot;45,910信譽&quot;&gt;伊尼安&lt;/a&gt;&amp;nbsp;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span class=&quot;comment-date&quot; dir=&quot;ltr&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;comment-link&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command#comment69913975_41355635&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;relativetime-clean&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;2016-12-28 05：55：55Z&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;16&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;年&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;comment-date&quot; dir=&quot;ltr&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;comment-link&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command#comment69913975_41355635&quot; style=&quot;border-bottom: none; border-image: initial; border-left: 0px; border-right: 0px; border-top: 0px; box-sizing: inherit; color: #9199a1; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;12月28日5:55&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div data-anon=&quot;true&quot; data-rep=&quot;50&quot; id=&quot;comments-link-41355635&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;js-show-link comments-link &quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command#&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px 3px 2px; text-decoration-line: none; vertical-align: baseline;&quot; title=&quot;展開以顯示此帖子的所有評論&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;再顯示&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;條評論&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;answers&quot; style=&quot;border: 0px; box-sizing: inherit; clear: both; float: none; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 10px 0px 0px; vertical-align: baseline; width: auto;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;tab-top&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/a&gt;&lt;div id=&quot;answers-header&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 10px 0px 0px; padding: 0px; vertical-align: baseline; width: 727px;&quot;&gt;&lt;div class=&quot;subheader answers-subheader&quot; style=&quot;border-bottom-color: rgb(228, 230, 232); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: content-box; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: 40px; line-height: inherit; margin: 0px 0px 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;h2 data-answercount=&quot;1&quot; style=&quot;border: 0px; box-sizing: inherit; color: #3b4045; float: left; font-family: inherit; font-size: 18px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: 1.3; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;1個回答&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div id=&quot;tabs&quot; style=&quot;border: 0px; box-sizing: inherit; float: right; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a data-nav-xhref=&quot;&quot; data-shortcut=&quot;A&quot; data-value=&quot;active&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command?answertab=active#tab-top&quot; style=&quot;background-color: white; border: 1px solid transparent; box-sizing: inherit; color: #848d95; cursor: pointer; float: left; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1; margin: 0px 8px 0px 0px; padding: 13px 10px; position: relative; text-decoration-line: none; transition: all 0.1s ease-in-out 0s; vertical-align: baseline;&quot; title=&quot;首先回答最新活動&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;活躍的&lt;/span&gt;&lt;/a&gt;&lt;a data-nav-xhref=&quot;&quot; data-shortcut=&quot;O&quot; data-value=&quot;oldest&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command?answertab=oldest#tab-top&quot; style=&quot;background-color: white; border: 1px solid transparent; box-sizing: inherit; color: #848d95; cursor: pointer; float: left; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1; margin: 0px 8px 0px 0px; padding: 13px 10px; position: relative; text-decoration-line: none; transition: all 0.1s ease-in-out 0s; vertical-align: baseline;&quot; title=&quot;按照提供的順序回答&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;最古老的&lt;/span&gt;&lt;/a&gt;&lt;a class=&quot;youarehere is-selected &quot; data-nav-xhref=&quot;&quot; data-shortcut=&quot;V&quot; data-value=&quot;votes&quot; href=&quot;https://stackoverflow.com/questions/41355635/sed-e-expression-1-char-1-unknown-command?answertab=votes#tab-top&quot; style=&quot;background-color: white; border-color: rgb(228, 230, 232) rgb(228, 230, 232) transparent; border-image: initial; border-style: solid; border-width: 1px; box-sizing: inherit; color: #242729; cursor: default; float: left; font-family: inherit; font-size: 12px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1; margin: 0px; padding: 13px 10px 14px; position: relative; text-decoration-line: none; transition: all 0.1s ease-in-out 0s; vertical-align: baseline;&quot; title=&quot;得分最高的答案&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;選票&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;41356542&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;answer&quot; data-answerid=&quot;41356542&quot; id=&quot;answer-41356542&quot; itemprop=&quot;suggestedAnswer&quot; itemscope=&quot;&quot; itemtype=&quot;http://schema.org/Answer&quot; style=&quot;border-bottom-color: rgb(228, 230, 232); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 20px 0px; vertical-align: baseline; width: 727px;&quot;&gt;&lt;div class=&quot;post-layout&quot; style=&quot;border: 0px; box-sizing: border-box; display: grid; flex-wrap: wrap; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-template-columns: max-content 1fr; justify-content: flex-end; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;votecell post-layout--left&quot; style=&quot;border: 0px; box-sizing: inherit; flex-grow: 0; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-column: 1 / auto; line-height: inherit; margin: 0px; padding: 0px 15px 0px 0px; vertical-align: top; width: auto;&quot;&gt;&lt;div class=&quot;js-voting-container grid fd-column ai-stretch gs4 fc-black-200&quot; data-post-id=&quot;41356542&quot; style=&quot;align-items: stretch !important; border: 0px; box-sizing: inherit; color: rgb(187, 192, 196) !important; display: flex; flex-direction: column !important; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: -2px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;button aria-label=&quot;投票&quot; aria-pressed=&quot;false&quot; class=&quot;js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer&quot; data-selected-classes=&quot;fc-theme-primary&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-color: initial; border-radius: 3px; border-style: none; border-width: initial; box-shadow: none; box-sizing: inherit; font: inherit; margin: 2px; outline: none; padding: 0px; position: relative;&quot; title=&quot;這個答案很有用&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; class=&quot;svg-icon m0 iconArrowUpLg&quot; height=&quot;36&quot; viewbox=&quot;0 0 36 36&quot; width=&quot;36&quot;&gt;&lt;path d=&quot;M2 26h32L18 10 2 26z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;div class=&quot;js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center&quot; data-value=&quot;1&quot; itemprop=&quot;upvoteCount&quot; style=&quot;align-items: center !important; border: 0px; box-sizing: inherit; color: rgb(106, 115, 124) !important; display: flex; flex-direction: column !important; font-family: inherit; font-size: 1.61538rem !important; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 2px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;1個&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;button aria-label=&quot;否決&quot; aria-pressed=&quot;false&quot; class=&quot;js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer&quot; data-selected-classes=&quot;fc-theme-primary&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-color: initial; border-radius: 3px; border-style: none; border-width: initial; box-shadow: none; box-sizing: inherit; font: inherit; margin: 2px; outline: none; padding: 0px; position: relative;&quot; title=&quot;這個答案沒有用&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; class=&quot;svg-icon m0 iconArrowDownLg&quot; height=&quot;36&quot; viewbox=&quot;0 0 36 36&quot; width=&quot;36&quot;&gt;&lt;path d=&quot;M2 10h32L18 26 2 10z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;answercell post-layout--right&quot; style=&quot;border: 0px; box-sizing: inherit; flex-shrink: 1; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; grid-column: 2 / auto; line-height: inherit; margin: 0px; min-width: 0px; padding: 0px; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;post-text&quot; itemprop=&quot;text&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1.3; margin: 0px 0px 5px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline; width: 676px;&quot;&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;在腳本中的變量周圍使用正確的雙引號，以避免&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;shell&lt;/code&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;誤解您的正斜杠（&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;/&lt;/code&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;），換行符和單詞拆分。&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;您的腳本中使用的所有變量都丟失了它。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;您的腳本的更正版本應類似於&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;lang-sh prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border-radius: 3px; border: 0px; box-sizing: inherit; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;border: 0px; box-sizing: inherit; color: #858c93; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;export alert_file&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;/cygdrive/c/TEMP/temp_oracle/alert_cert1_copy.log&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;export alert_output&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;/cygdrive/c/cygwin64/home/alert_out.log&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: inherit; color: #101094; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; searchAlertByFilterLN&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;    &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;border: 0px; box-sizing: inherit; color: #858c93; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#err1=$(sed -n &quot;${lastLineNum},${totLines} p&quot; $alert_file | egrep -e &quot;ORA-&quot;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;    err1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;sed &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;n &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;8937,8946 p&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$alert_file&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; egrep &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;e &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;ORA-|Shutting down&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;     &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: inherit; color: #101094; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;n &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$err1&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;];&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: inherit; color: #101094; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;then&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;  &lt;br /&gt;         echo &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;e &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;Errors found:&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$alert_output&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;         echo &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;------------&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$alert_output&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;         sed &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;n &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;8937,8946 p&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$alert_file&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; egrep &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;e &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;ORA-|Shutting down&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $alert_output&lt;br /&gt;         echo &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$alert_output&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;         echo &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$alert_output&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;         echo &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;e &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;Check the details of the errors below. (Details means the surroundig lines of the error message only)&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$alert_output&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;         echo  &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;-------------------------------------&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$alert_output&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;         sed &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;n &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;8937,8946 p&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$alert_file&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;usr&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;bin&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;egrep &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;A &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;B &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;ORA-|Shutting down&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: #7d2727; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;$alert_output&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;     &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: inherit; color: #101094; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;fi&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;searchAlertByFilterLN &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: #303336; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;--&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;grid mb0 fw-wrap ai-start jc-end gs8 gsy&quot; style=&quot;align-items: flex-start !important; border: 0px; box-sizing: inherit; display: flex; flex-wrap: wrap !important; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; justify-content: flex-end !important; line-height: inherit; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px; margin-top: -4px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;time datetime=&quot;2016-12-28T06:30:06&quot; itemprop=&quot;dateCreated&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/time&gt;&lt;div class=&quot;grid--cell mr16&quot; style=&quot;border: 0px; box-sizing: inherit; flex: 1 1 100px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 4px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;post-menu&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 2px 0px 0px; vertical-align: baseline;&quot;&gt;&lt;a aria-controls=&quot;se-share-sheet-1&quot; class=&quot;js-share-link&quot; data-action=&quot; s-popover#toggle se-share-sheet#preventNavigation s-popover:show-&amp;gt;se-share-sheet#willShow s-popover:shown-&amp;gt;se-share-sheet#didShow&quot; data-controller=&quot;se-share-sheet s-popover&quot; data-s-popover-placement=&quot;bottom-start&quot; data-se-share-sheet-location=&quot;2&quot; data-se-share-sheet-post-type=&quot;answer&quot; data-se-share-sheet-social=&quot;facebook twitter devto&quot; data-se-share-sheet-subtitle=&quot;&quot; data-se-share-sheet-title=&quot;Share a link to this answer&quot; href=&quot;https://stackoverflow.com/a/41356542&quot; itemprop=&quot;url&quot; style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #848d95; cursor: pointer; display: inline-block; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px 4px 2px; text-decoration-line: none; vertical-align: baseline;&quot; title=&quot;簡短的永久鏈接到這個答案&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;分享&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; box-sizing: inherit; color: #242729; display: inline-block; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; vertical-align: inherit;&quot;&gt;&lt;span class=&quot;lsep&quot; style=&quot;border: 0px; box-sizing: inherit; color: #1b4072; font-family: inherit; font-size: 1px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; visibility: hidden;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;a class=&quot;suggest-edit-post&quot; href=&quot;https://stackoverflow.com/posts/41356542/edit&quot; style=&quot;border: 0px; box-sizing: inherit; color: #0077cc; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot; title=&quot;&quot;&gt;改善這個答案&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;lsep&quot; style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #1b4072; display: inline-block; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 1px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; visibility: hidden;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;a class=&quot;suggest-edit-post&quot; href=&quot;https://stackoverflow.com/posts/41356542/edit&quot; style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #848d95; cursor: pointer; display: inline-block; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px 4px 2px; text-decoration-line: none; vertical-align: baseline;&quot; title=&quot;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/8277348604672229715/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/sed-e-expression-1-char-1-unknown.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/8277348604672229715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/8277348604672229715'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/sed-e-expression-1-char-1-unknown.html' title='出現錯誤訊息:   sed: -e expression #1, char 1: unknown command: `,&#39;'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-879330415243773089</id><published>2019-10-25T09:15:00.002+08:00</published><updated>2019-10-25T09:19:28.213+08:00</updated><title type='text'>uniq - remove duplicate lines from a sorted file (從排序的文件中刪除重複的行)</title><content type='html'>&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h1 class=&quot;firstHeading&quot; id=&quot;firstHeading&quot; lang=&quot;en&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom: 1px solid rgb(162, 169, 177); font-family: &amp;quot;Linux Libertine&amp;quot;, Georgia, Times, serif; font-size: 1.8em; font-weight: normal; line-height: 1.3; margin: 0px 0px 0.25em; overflow: visible; padding: 0px;&quot;&gt;uniq&lt;/h1&gt;&lt;div class=&quot;mw-body-content&quot; id=&quot;bodyContent&quot; style=&quot;line-height: 1.6; position: relative; z-index: 0;&quot;&gt;&lt;div class=&quot;noprint&quot; id=&quot;siteSub&quot; style=&quot;color: #222222; font-family: sans-serif; font-size: 12.88px;&quot;&gt;From Wikipedia, the free encyclopedia&lt;/div&gt;&lt;div id=&quot;contentSub&quot; style=&quot;color: #54595d; font-family: sans-serif; font-size: 12px; line-height: 1.2em; margin: 0px 0px 1.4em 1em; width: auto;&quot;&gt;&lt;/div&gt;&lt;div id=&quot;jump-to-nav&quot; style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em;&quot;&gt;&lt;a class=&quot;mw-jump-link&quot; href=&quot;https://en.wikipedia.org/wiki/Uniq#mw-head&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; clip: rect(1px, 1px, 1px, 1px); color: #0b0080; display: block; height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute !important; text-decoration-line: none; width: 1px;&quot;&gt;Jump to navigation&lt;/a&gt;&lt;a class=&quot;mw-jump-link&quot; href=&quot;https://en.wikipedia.org/wiki/Uniq#p-search&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; clip: rect(1px, 1px, 1px, 1px); color: #0b0080; display: block; height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute !important; text-decoration-line: none; width: 1px;&quot;&gt;Jump to search&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;mw-content-ltr&quot; dir=&quot;ltr&quot; id=&quot;mw-content-text&quot; lang=&quot;en&quot; style=&quot;direction: ltr;&quot;&gt;&lt;div class=&quot;mw-parser-output&quot;&gt;&lt;div class=&quot;hatnote navigation-not-searchable&quot; role=&quot;note&quot; style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; font-style: italic; margin-bottom: 0.5em; padding-left: 1.6em;&quot;&gt;This article is about the Unix utility.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;&lt;/div&gt;&lt;table class=&quot;infobox vevent&quot; style=&quot;background-color: #f8f9fa; border-spacing: 3px; border: 1px solid rgb(162, 169, 177); clear: right; color: black; float: right; font-family: sans-serif; font-size: 12.32px; line-height: 1.5em; margin: 0.5em 0px 0.5em 1em; padding: 0.2em; width: 22em;&quot;&gt;&lt;caption class=&quot;summary&quot; style=&quot;font-size: 15.4px; font-weight: bold; padding: 0.2em;&quot;&gt;uniq&lt;/caption&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th scope=&quot;row&quot; style=&quot;text-align: left; vertical-align: top; white-space: nowrap;&quot;&gt;&lt;a class=&quot;mw-redirect&quot; href=&quot;https://en.wikipedia.org/wiki/Software_developer&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Software developer&quot;&gt;Original author(s)&lt;/a&gt;&lt;/th&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Ken_Thompson&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Ken Thompson&quot;&gt;Ken Thompson&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th scope=&quot;row&quot; style=&quot;text-align: left; vertical-align: top; white-space: nowrap;&quot;&gt;&lt;a class=&quot;mw-redirect&quot; href=&quot;https://en.wikipedia.org/wiki/Software_developer&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Software developer&quot;&gt;Developer(s)&lt;/a&gt;&lt;/th&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;a class=&quot;mw-redirect&quot; href=&quot;https://en.wikipedia.org/wiki/AT%26T_Bell_Laboratories&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;AT&amp;amp;T Bell Laboratories&quot;&gt;AT&amp;amp;T Bell Laboratories&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th scope=&quot;row&quot; style=&quot;text-align: left; vertical-align: top; white-space: nowrap;&quot;&gt;Initial release&lt;/th&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;February&amp;nbsp;1973&lt;span class=&quot;noprint&quot;&gt;; 46&amp;nbsp;years ago&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th scope=&quot;row&quot; style=&quot;text-align: left; vertical-align: top; white-space: nowrap;&quot;&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Operating_system&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Operating system&quot;&gt;Operating system&lt;/a&gt;&lt;/th&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Unix&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Unix&quot;&gt;Unix&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/Unix-like&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Unix-like&quot;&gt;Unix-like&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/MSX-DOS&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;MSX-DOS&quot;&gt;MSX-DOS&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th scope=&quot;row&quot; style=&quot;text-align: left; vertical-align: top; white-space: nowrap;&quot;&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Software_categories#Categorization_approaches&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Software categories&quot;&gt;Type&lt;/a&gt;&lt;/th&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Command_(computing)&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Command (computing)&quot;&gt;Command&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th scope=&quot;row&quot; style=&quot;text-align: left; vertical-align: top; white-space: nowrap;&quot;&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Software_license&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Software license&quot;&gt;License&lt;/a&gt;&lt;/th&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/GNU_General_Public_License#Version_3&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;GNU General Public License&quot;&gt;GNU GPL v3&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th scope=&quot;row&quot; style=&quot;text-align: left; vertical-align: top; white-space: nowrap;&quot;&gt;Website&lt;/th&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;a class=&quot;external free&quot; href=&quot;http://man7.org/linux/man-pages/man1/uniq.1.html&quot; rel=&quot;nofollow&quot; style=&quot;background: linear-gradient(transparent, transparent) right center no-repeat, url(&amp;quot;/w/skins/Vector/images/external-link-ltr-icon.svg?b4b84&amp;quot;); color: #663366; overflow-wrap: break-word; padding-right: 13px; text-decoration-line: none;&quot;&gt;http://man7.org/linux/man-pages/man1/uniq.1.html&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em;&quot;&gt;&lt;span style=&quot;background-color: #eeeeee; color: black; font-family: arial, helvetica, sans-serif; font-size: 12.8px;&quot;&gt;uniq - remove duplicate lines from a sorted file&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;lbAC&quot; style=&quot;color: #003366; font-family: arial, helvetica, sans-serif; font-size: 12.8px;&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;color: #222222; font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 從排序的文件中刪除重複的行&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #222222; font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em;&quot;&gt;&lt;b&gt;uniq&lt;/b&gt;&amp;nbsp;is a&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/Unix&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Unix&quot;&gt;Unix&lt;/a&gt;&amp;nbsp;utility which, when fed a&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/Text_file&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Text file&quot;&gt;text file&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Standard streams&quot;&gt;STDIN&lt;/a&gt;, outputs the text with adjacent identical lines collapsed to one, unique line of text.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;mw-headline&quot; style=&quot;color: black; font-family: &amp;quot;linux libertine&amp;quot; , &amp;quot;georgia&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 0.875em;&quot;&gt;&lt;b style=&quot;background-color: white; color: #222222; font-family: sans-serif; font-size: 14px;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;uniq&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: sans-serif; font-size: 14px; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;是&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Unix&quot; style=&quot;background: none rgb(255, 255, 255); color: #0b0080; font-family: sans-serif; font-size: 14px; text-decoration-line: none;&quot; title=&quot;Unix系統&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;Unix&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: sans-serif; font-size: 14px; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;實用程序，當輸入&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Text_file&quot; style=&quot;background: none rgb(255, 255, 255); color: #0b0080; font-family: sans-serif; font-size: 14px; text-decoration-line: none;&quot; title=&quot;文本文件&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;文本文件&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: sans-serif; font-size: 14px; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;或&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)&quot; style=&quot;background: none rgb(255, 255, 255); color: #0b0080; font-family: sans-serif; font-size: 14px; text-decoration-line: none;&quot; title=&quot;標準流&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;STDIN時&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: sans-serif; font-size: 14px; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;，它以折疊的相鄰相同行輸出為一行唯一的文本來輸出文本。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;mw-headline&quot; style=&quot;color: black; font-family: &amp;quot;linux libertine&amp;quot; , &amp;quot;georgia&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 0.875em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;mw-headline&quot; id=&quot;Overview&quot; style=&quot;color: black; font-family: &amp;quot;linux libertine&amp;quot; , &amp;quot;georgia&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 0.875em;&quot;&gt;Overview&lt;/span&gt;&lt;span class=&quot;mw-editsection&quot; style=&quot;color: black; font-size: x-small; line-height: 1em; margin-left: 1em; vertical-align: baseline; white-space: nowrap;&quot;&gt;&lt;span class=&quot;mw-editsection-bracket&quot; style=&quot;color: #54595d; margin-right: 0.25em;&quot;&gt;[&lt;/span&gt;&lt;a href=&quot;https://en.wikipedia.org/w/index.php?title=Uniq&amp;amp;action=edit&amp;amp;section=1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Edit section: Overview&quot;&gt;edit&lt;/a&gt;&lt;span class=&quot;mw-editsection-bracket&quot; style=&quot;color: #54595d; margin-left: 0.25em;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;The command is a kind of&amp;nbsp;&lt;a class=&quot;mw-redirect&quot; href=&quot;https://en.wikipedia.org/wiki/Filter_program&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Filter program&quot;&gt;filter program&lt;/a&gt;. Typically it is used after&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/Sort_(Unix)&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Sort (Unix)&quot;&gt;&lt;code style=&quot;background-color: #f8f9fa; border-radius: 2px; border: 1px solid rgb(234, 236, 240); color: black; font-family: monospace, monospace; padding: 1px 4px;&quot;&gt;sort&lt;/code&gt;&lt;/a&gt;.&amp;nbsp;&lt;span style=&quot;font-size: 12.25px; vertical-align: inherit;&quot;&gt;該命令是一種&lt;/span&gt;&lt;a class=&quot;mw-redirect&quot; href=&quot;https://en.wikipedia.org/wiki/Filter_program&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; font-size: 12.25px; text-decoration-line: none;&quot; title=&quot;篩選程序&quot;&gt;過濾程序&lt;/a&gt;&lt;span style=&quot;font-size: 12.25px; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;。&lt;/span&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;通常在之後使用&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Sort_(Unix)&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; font-size: 12.25px; text-decoration-line: none;&quot; title=&quot;排序（Unix）&quot;&gt;&lt;code style=&quot;background-color: #f8f9fa; border-radius: 2px; border: 1px solid rgb(234, 236, 240); color: black; font-family: monospace, monospace; padding: 1px 4px;&quot;&gt;sort&lt;/code&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 12.25px; vertical-align: inherit;&quot;&gt;。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;&lt;span style=&quot;font-size: 12.25px; vertical-align: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;It can also output only the duplicate lines (with the&amp;nbsp;&lt;code style=&quot;background-color: #f8f9fa; border-radius: 2px; border: 1px solid rgb(234, 236, 240); color: black; font-family: monospace, monospace; padding: 1px 4px;&quot;&gt;-d&lt;/code&gt;&amp;nbsp;option),&amp;nbsp;&lt;span style=&quot;font-size: 12.25px; vertical-align: inherit;&quot;&gt;它還可以僅輸出重複的行（帶&lt;/span&gt;&lt;code style=&quot;background-color: #f8f9fa; border-radius: 2px; border: 1px solid rgb(234, 236, 240); color: black; font-family: monospace, monospace; font-size: 12.25px; padding: 1px 4px;&quot;&gt;-d&lt;/code&gt;&lt;span style=&quot;font-size: 12.25px; vertical-align: inherit;&quot;&gt;選項）&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;or add the number of occurrences of each line (with the&amp;nbsp;&lt;code style=&quot;background-color: #f8f9fa; border-radius: 2px; border: 1px solid rgb(234, 236, 240); color: black; font-family: monospace, monospace; padding: 1px 4px;&quot;&gt;-c&lt;/code&gt;&amp;nbsp;option).&amp;nbsp;&lt;span style=&quot;background-color: white; font-size: 0.875em; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;或增加每行的出現次數（帶&lt;/span&gt;&lt;/span&gt;&lt;code style=&quot;background-color: #f8f9fa; border-radius: 2px; border: 1px solid rgb(234, 236, 240); color: black; font-family: monospace, monospace; font-size: 0.875em; padding: 1px 4px;&quot;&gt;-c&lt;/code&gt;&lt;span style=&quot;background-color: white; font-size: 0.875em; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;選項）。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;An example: To see the list of lines in a file, sorted by the number of times each occurs:&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;&lt;span style=&quot;font-size: 12.25px;&quot;&gt;一個示例：要查看文件中的行列表，按行出現的次數排序：&lt;/span&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: #f8f9fa; border: 1px solid rgb(234, 236, 240); color: black; font-family: monospace, monospace; font-size: 0.875em; line-height: 1.3; overflow-wrap: break-word; overflow-x: hidden; padding: 1em; white-space: pre-wrap;&quot;&gt;sort file | uniq -c | sort -n&lt;br /&gt;&lt;/pre&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;Using uniq like this is common when building&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/Pipeline_(software)&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Pipeline (software)&quot;&gt;pipelines&lt;/a&gt;&amp;nbsp;in&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/Shell_script&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Shell script&quot;&gt;shell scripts&lt;/a&gt;.&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;&lt;span style=&quot;font-size: 12.25px; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;在&lt;/span&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Shell_script&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Shell script&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;shell腳本中&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;構建&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Pipeline_(software)&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0b0080; font-size: 12.25px; text-decoration-line: none;&quot; title=&quot;管道（軟件）&quot;&gt;管道時&lt;/a&gt;&lt;span style=&quot;font-size: 12.25px; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;，&lt;/span&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;通常會像這樣使用uniq&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;vertical-align: inherit;&quot;&gt;。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 0.875em; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/879330415243773089/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/uniq-is-unix-utility.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/879330415243773089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/879330415243773089'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/uniq-is-unix-utility.html' title='uniq - remove duplicate lines from a sorted file (從排序的文件中刪除重複的行)'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-473798708168085427</id><published>2019-10-25T08:25:00.000+08:00</published><updated>2019-10-25T08:25:25.685+08:00</updated><title type='text'>sed（意為流編輯器，源自英語「stream editor」的縮寫）</title><content type='html'>轉自&amp;nbsp;&lt;a href=&quot;https://zh.wikipedia.org/wiki/Sed&quot;&gt;https://zh.wikipedia.org/wiki/Sed&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: #222222; font-family: sans-serif; font-size: 15.008px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;sed&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;（意為&lt;/span&gt;&lt;b style=&quot;background-color: white;&quot;&gt;流編輯器&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;，源自&lt;/span&gt;&lt;a href=&quot;https://zh.wikipedia.org/wiki/%E8%8B%B1%E8%AF%AD&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;英語&quot;&gt;英語&lt;/a&gt;&lt;span style=&quot;background-color: white;&quot;&gt;「&lt;/span&gt;&lt;span lang=&quot;en&quot; style=&quot;background-color: yellow;&quot;&gt;stream editor&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;」的縮寫）是一個使用簡單緊湊的程式語言來解析和轉換文字&lt;/span&gt;&lt;a href=&quot;https://zh.wikipedia.org/wiki/UNIX&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;UNIX&quot;&gt;Unix&lt;/a&gt;&lt;span style=&quot;background-color: white;&quot;&gt;實用程式。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: sans-serif; font-size: 15.008px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;sed由&lt;a href=&quot;https://zh.wikipedia.org/wiki/%E8%B4%9D%E5%B0%94%E5%AE%9E%E9%AA%8C%E5%AE%A4&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;貝爾實驗室&quot;&gt;貝爾實驗室&lt;/a&gt;的Lee E. McMahon於1973年至1974年開發，&amp;nbsp;&lt;sup class=&quot;reference&quot; id=&quot;cite_ref-sed-faq-2.1_1-0&quot; style=&quot;line-height: 1; unicode-bidi: isolate; white-space: nowrap;&quot;&gt;&lt;a href=&quot;https://zh.wikipedia.org/wiki/Sed#cite_note-sed-faq-2.1-1&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot;&gt;[1]&lt;/a&gt;&lt;/sup&gt;&amp;nbsp;並且現在大多數作業系統都可以使用。&amp;nbsp;&lt;sup class=&quot;reference&quot; id=&quot;cite_ref-sed-faq-2.2_2-0&quot; style=&quot;line-height: 1; unicode-bidi: isolate; white-space: nowrap;&quot;&gt;&lt;a href=&quot;https://zh.wikipedia.org/wiki/Sed#cite_note-sed-faq-2.2-2&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot;&gt;[2]&lt;/a&gt;&lt;/sup&gt;&amp;nbsp;sed基於互動式編輯器ed（「editor」，1971）和早期qed（「quick editor」，1965-66）的指令碼功能。sed是最早支援&lt;a href=&quot;https://zh.wikipedia.org/wiki/%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;正規表示式&quot;&gt;正規表示式&lt;/a&gt;的工具之一，至今仍然用於文字處理，特別是用於替換命令。用於純文字字串操作和「流編輯」的常用工具還有&lt;a href=&quot;https://zh.wikipedia.org/wiki/AWK&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;AWK&quot;&gt;AWK&lt;/a&gt;和&lt;a href=&quot;https://zh.wikipedia.org/wiki/Perl&quot; style=&quot;background: none; color: #0b0080; text-decoration-line: none;&quot; title=&quot;Perl&quot;&gt;Perl&lt;/a&gt;&amp;nbsp;。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/473798708168085427/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/sedstream-editor.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/473798708168085427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/473798708168085427'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/sedstream-editor.html' title='sed（意為流編輯器，源自英語「stream editor」的縮寫）'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-3030258687196847399</id><published>2019-10-23T11:21:00.000+08:00</published><updated>2019-10-23T11:21:10.230+08:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; mso-outline-level: 1; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #444444; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 15.0pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 18.0pt;&quot;&gt;Shell&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 15.0pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 18.0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;特殊變數：&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #444444; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 15.0pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 18.0pt;&quot;&gt;Shell $0, $#, $*, $@, $?, $$&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 15.0pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 18.0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;和命令列參數&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #444444; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 15.0pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 18.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 22.5pt; mso-pagination: widow-orphan;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background: #F9F9F9; border: dashed #BBBBBB 1.0pt; mso-border-alt: dashed #BBBBBB .75pt; mso-element: para-border-div; padding: 6.0pt 8.0pt 6.0pt 8.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F9F9F9; border: none; line-height: 17.25pt; mso-border-alt: dashed #BBBBBB .75pt; mso-padding-alt: 6.0pt 8.0pt 6.0pt 8.0pt; mso-pagination: widow-orphan; padding: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 19.2pt; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;前面已經講到，變數名只能包含數位、字母和底線，因為某些包含其他字元的變數有特殊含義，這樣的變數被稱為特殊變數。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;例如，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;$ &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;表示當前&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;Shell&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;進程的&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;，即&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;pid&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;，看下面的代碼：&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;1.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$echo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$$&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 19.2pt; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;運行結果&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: #F6F6F6; border: solid #E5E5E5 1.0pt; mso-border-alt: solid #E5E5E5 .75pt; mso-element: para-border-div; padding: 5.0pt 6.0pt 5.0pt 6.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;29949&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 19.2pt; mso-pagination: widow-orphan;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; mso-yfti-tbllook: 1184;&quot;&gt; &lt;tbody&gt;&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;  &lt;td colspan=&quot;2&quot; style=&quot;background: #EDEDED; padding: 5.25pt 3.75pt 5.25pt 3.75pt;&quot;&gt;  &lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;特殊變數清單&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 1;&quot;&gt;  &lt;td style=&quot;background: #EDEDED; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; padding: 5.25pt 3.75pt 5.25pt 3.75pt;&quot;&gt;  &lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;變數&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;background: #EDEDED; border-left: none; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-border-left-alt: solid #CCCCCC .75pt; padding: 5.25pt 3.75pt 5.25pt 3.75pt;&quot;&gt;  &lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;含義&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 2;&quot;&gt;  &lt;td style=&quot;border-top: none; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;$0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-alt: solid #CCCCCC .75pt; mso-border-left-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;當前腳本的檔案名&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 3;&quot;&gt;  &lt;td style=&quot;border-top: none; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;$n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-alt: solid #CCCCCC .75pt; mso-border-left-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;傳遞給腳本或函數的參數。&lt;span lang=&quot;EN-US&quot;&gt;n &lt;/span&gt;是一個數字，表示第幾個參數。例如，第一個參數是&lt;span lang=&quot;EN-US&quot;&gt;$1&lt;/span&gt;，第二個參數是&lt;span lang=&quot;EN-US&quot;&gt;$2&lt;/span&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 4;&quot;&gt;  &lt;td style=&quot;border-top: none; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;$#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-alt: solid #CCCCCC .75pt; mso-border-left-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;傳遞給腳本或函數的參數個數。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 5;&quot;&gt;  &lt;td style=&quot;border-top: none; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;$*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-alt: solid #CCCCCC .75pt; mso-border-left-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;傳遞給腳本或函數的所有參數。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 6;&quot;&gt;  &lt;td style=&quot;border-top: none; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;$@&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-alt: solid #CCCCCC .75pt; mso-border-left-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;傳遞給腳本或函數的所有參數。被雙引號&lt;span lang=&quot;EN-US&quot;&gt;(&quot; &quot;)&lt;/span&gt;包含時，與&lt;span lang=&quot;EN-US&quot;&gt; $* &lt;/span&gt;稍有不同，下面將會講到。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 7;&quot;&gt;  &lt;td style=&quot;border-top: none; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;$?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-alt: solid #CCCCCC .75pt; mso-border-left-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;上個命令的退出狀態，或函數的返回值。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 8; mso-yfti-lastrow: yes;&quot;&gt;  &lt;td style=&quot;border-top: none; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;$$&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-alt: solid #CCCCCC .75pt; mso-border-left-alt: solid #CCCCCC .75pt; mso-border-top-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;當前&lt;span lang=&quot;EN-US&quot;&gt;Shell&lt;/span&gt;進程&lt;span lang=&quot;EN-US&quot;&gt;ID&lt;/span&gt;。對於&lt;span lang=&quot;EN-US&quot;&gt; Shell   &lt;/span&gt;腳本，就是這些腳本所在的進程&lt;span lang=&quot;EN-US&quot;&gt;ID&lt;/span&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 13.5pt; margin-bottom: 11.25pt; margin-left: 0cm; margin-right: 0cm; margin-top: 11.25pt; mso-outline-level: 2; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 13.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;命令列參數&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 19.2pt; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;運行腳本時傳遞給腳本的參數稱為命令列參數。命令列參數用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; $n &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;表示，例如，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;$1 &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;表示第一個參數，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;$2 &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;表示第二個參數，依次類推。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;請看下麵的腳本：&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;1.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #38ad24; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;2.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;3.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;File Name: $0&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;4.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;First Parameter : $1&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;5.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;First Parameter : $2&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;6.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;Quoted Values: $@&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;7.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;Quoted Values: $*&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;8.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;Total Number of Parameters : $#&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 19.2pt; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;運行結果：&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: #F6F6F6; border: solid #E5E5E5 1.0pt; mso-border-alt: solid #E5E5E5 .75pt; mso-element: para-border-div; padding: 5.0pt 6.0pt 5.0pt 6.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$./test.sh Zara Ali&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;File Name : ./test.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;First Parameter : Zara&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;Second Parameter : Ali&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;Quoted Values: Zara Ali&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;Quoted Values: Zara Ali&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;Total Number of Parameters : 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 13.5pt; margin-bottom: 11.25pt; margin-left: 0cm; margin-right: 0cm; margin-top: 11.25pt; mso-outline-level: 2; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;$* &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 13.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;和&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; $@ &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 13.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;的區別&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 19.2pt; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;$* &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;和&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; $@ &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;都表示傳遞給函數或腳本的所有參數，不被雙引號&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;(&quot; &quot;)&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;包含時，都以&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$1&quot; &quot;$2&quot; &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;…&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; &quot;$n&quot; &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;的形式輸出所有參數。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;但是當它們被雙引號&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;(&quot; &quot;)&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;包含時，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$*&quot; &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;會將所有的參數作為一個整體，以&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$1 $2 &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;…&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; $n&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;的形式輸出所有參數；&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$@&quot; &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;會將各個參數分開，以&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$1&quot; &quot;$2&quot; &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;…&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; &quot;$n&quot; &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;的形式輸出所有參數。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;下面的例子可以清楚的看到&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; $* &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;和&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; $@ &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;的區別：&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;1.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #38ad24; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;2.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;\$*=&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$*&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;3.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;\&quot;\$*\&quot;=&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$*&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;4.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;5.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;\$@=&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$@&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;6.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;\&quot;\$@\&quot;=&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$@&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;7.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;8.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;print each param from \$*&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;9.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; var &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;in&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$*&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;10.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;do&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;11.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$var&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;12.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;done&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;13.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;14.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;print each param from \$@&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;15.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; var &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;in&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$@&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;16.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;do&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;17.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$var&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;18.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;done&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;19.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;20.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;print each param from \&quot;\$*\&quot;&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;21.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; var &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;in&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$*&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;22.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;do&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;23.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$var&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;24.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;done&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;25.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;26.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;print each param from \&quot;\$@\&quot;&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;27.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; var &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;in&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$@&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;28.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;do&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;29.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;echo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1861a7; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$var&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #FCFCFC; line-height: 19.2pt; margin-left: 0cm; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;30.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #ff3030; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;done&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 19.2pt; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;執行&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;./test.sh &quot;a&quot; &quot;b&quot; &quot;c&quot; &quot;d&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;，看到下面的結果：&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: #F6F6F6; border: solid #E5E5E5 1.0pt; mso-border-alt: solid #E5E5E5 .75pt; mso-element: para-border-div; padding: 5.0pt 6.0pt 5.0pt 6.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$*=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;a b c d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$*&quot;= a b c d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$@=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;a b c d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&quot;$@&quot;= a b c d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;print each param from $*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;c&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;print each param from $@&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;c&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;print each param from &quot;$*&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;a b c d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;print each param from &quot;$@&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;a&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;b&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;c&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;d&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 13.5pt; margin-bottom: 11.25pt; margin-left: 0cm; margin-right: 0cm; margin-top: 11.25pt; mso-outline-level: 2; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 13.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;退出狀態&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 19.2pt; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;$? &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;可以獲取上一個命令的退出狀態。所謂退出狀態，就是上一個命令執行後的返回結果。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;退出狀態是一個數位，一般情況下，大部分命令執行成功會返回&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;，失敗返回&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;不過，也有一些命令返回其他值，表示不同類型的錯誤。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;下面例子中，命令成功執行：&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: #F6F6F6; border: solid #E5E5E5 1.0pt; mso-border-alt: solid #E5E5E5 .75pt; mso-element: para-border-div; padding: 5.0pt 6.0pt 5.0pt 6.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$./test.sh Zara Ali&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;File Name : ./test.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;First Parameter : Zara&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;Second Parameter : Ali&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;Quoted Values: Zara Ali&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;Quoted Values: Zara Ali&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;Total Number of Parameters : 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$echo $?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;0&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F6F6F6; border: none; line-height: 19.2pt; margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.75pt; mso-border-alt: solid #E5E5E5 .75pt; mso-padding-alt: 5.0pt 6.0pt 5.0pt 6.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 細明體; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; line-height: 19.2pt; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;$? &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,serif; font-size: 10.5pt; mso-ascii-font-family: &amp;quot;Microsoft YaHei&amp;quot;; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt; mso-hansi-font-family: &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;也可以表示函數的返回值，後續將會講解。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Microsoft YaHei&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/3030258687196847399/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/shell-shell-0-shell-id-pid-1.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/3030258687196847399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/3030258687196847399'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/shell-shell-0-shell-id-pid-1.html' title=''/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-1672329797591131400</id><published>2019-10-22T10:58:00.000+08:00</published><updated>2019-10-22T10:58:17.365+08:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;文章轉自&amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://www.opencli.com/linux/sort-command-sort-data&quot;&gt;https://www.opencli.com/linux/sort-command-sort-data&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;breadcrumb&quot; style=&quot;background-color: white; border: 0px; clear: both; color: #444444; float: none; font-family: Raleway; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 15px; overflow: hidden; padding: 0px; vertical-align: baseline;&quot; xmlns:v=&quot;http://rdf.data-vocabulary.org/#&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Roboto Slab&amp;quot;; font-size: 38px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit;&quot;&gt;sort 指令 – 將欄位資料排序&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;single_post&quot; style=&quot;border: 0px; color: #444444; float: left; font-family: Raleway; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 30px; padding: 0px; vertical-align: baseline; width: 680px;&quot;&gt;&lt;header style=&quot;background-color: white; border: 0px; float: left; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline; width: 680px;&quot;&gt;&lt;div class=&quot;post-info&quot; style=&quot;border: 0px; clear: both; color: #aaaaaa; float: left; font: inherit; margin: 0px 0px 20px; padding: 0px; vertical-align: baseline; width: 680px;&quot;&gt;&lt;span class=&quot;theauthor&quot; style=&quot;border: 0px; font: inherit; margin: 0px 20px 0px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;fa fa-user&quot; style=&quot;-webkit-font-smoothing: antialiased; border: 0px; display: inline-block; font-family: FontAwesome; font-size: inherit; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1; margin: 0px; padding: 0px; text-rendering: auto; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://www.opencli.com/author/admin&quot; rel=&quot;author&quot; style=&quot;border: 0px; color: #0274be; font: inherit; margin: 0px; padding: 0px; text-decoration-line: none; transition: all 0.25s linear 0s; vertical-align: baseline;&quot; title=&quot;Posts by Sam Tang&quot;&gt;Sam Tang&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;thetime date updated&quot; style=&quot;border: 0px; font: inherit; margin: 0px 20px 0px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;fa fa-calendar&quot; style=&quot;-webkit-font-smoothing: antialiased; border: 0px; display: inline-block; font-family: FontAwesome; font-size: inherit; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1; margin: 0px; padding: 0px; text-rendering: auto; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;10 April 2017&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;thecategory&quot; style=&quot;border: 0px; font: inherit; margin: 0px 20px 0px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;fa fa-tags&quot; style=&quot;-webkit-font-smoothing: antialiased; border: 0px; display: inline-block; font-family: FontAwesome; font-size: inherit; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1; margin: 0px; padding: 0px; text-rendering: auto; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;a href=&quot;https://www.opencli.com/category/linux&quot; style=&quot;border: 0px; color: #0274be; font: inherit; margin: 0px; padding: 0px; text-decoration-line: none; transition: all 0.25s linear 0s; vertical-align: baseline;&quot; title=&quot;View all posts in Linux&quot;&gt;Linux&lt;/a&gt;&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;thecomment&quot; style=&quot;border: 0px; font: inherit; margin: 0px 20px 0px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;fa fa-comments&quot; style=&quot;-webkit-font-smoothing: antialiased; border: 0px; display: inline-block; font-family: FontAwesome; font-size: inherit; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1; margin: 0px; padding: 0px; text-rendering: auto; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;a href=&quot;https://www.opencli.com/linux/sort-command-sort-data#respond&quot; itemprop=&quot;interactionCount&quot; style=&quot;border: 0px; color: #0274be; font: inherit; margin: 0px; padding: 0px; text-decoration-line: none; transition: all 0.25s linear 0s; vertical-align: baseline;&quot;&gt;No Comments&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/header&gt;&lt;div class=&quot;post-single-content box mark-links entry-content&quot; style=&quot;border: 0px; clear: both; float: left; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline; width: 680px;&quot;&gt;&lt;div class=&quot;topad&quot; style=&quot;background-color: white; border: 0px; clear: both; font: inherit; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-8222417498607995&quot; data-ad-slot=&quot;7461176210&quot; data-adsbygoogle-status=&quot;done&quot; data-overlap-observer-io=&quot;false&quot; style=&quot;border: 0px; display: inline-block; font: inherit; height: 15px; margin: 0px; padding: 0px; vertical-align: baseline; width: 468px;&quot;&gt;&lt;ins id=&quot;aswift_2_expand&quot; style=&quot;background-color: transparent; border: none; display: inline-table; font: inherit; height: 15px; margin: 0px; padding: 0px; position: relative; vertical-align: baseline; visibility: visible; width: 468px;&quot;&gt;&lt;ins id=&quot;aswift_2_anchor&quot; style=&quot;background-color: transparent; border: none; display: block; font: inherit; height: 15px; margin: 0px; padding: 0px; position: relative; vertical-align: baseline; visibility: visible; width: 468px;&quot;&gt;&lt;iframe allowfullscreen=&quot;true&quot; allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;15&quot; hspace=&quot;0&quot; id=&quot;aswift_2&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;aswift_2&quot; scrolling=&quot;no&quot; style=&quot;border-style: initial; border-width: 0px; font: inherit; height: 15px; left: 0px; margin: 0px; max-width: 100%; padding: 0px; position: absolute; top: 0px; vertical-align: baseline; width: 468px;&quot; vspace=&quot;0&quot; width=&quot;468&quot;&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;/div&gt;&lt;div class=&quot;thecontent&quot; style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: white; border: 0px; font: inherit; margin-bottom: 20px; padding: 0px; vertical-align: baseline;&quot;&gt;sort 指令是在 Linux 下的排序指令, 可以將資料以不同欄位以數值及字母排序。sort 預設會用以下條件排序:&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; font: inherit; margin-bottom: 20px; padding: 0px; vertical-align: baseline;&quot;&gt;— 數字會排在字母前面;&lt;br /&gt;— 小寫字母會排在大寫字母前面;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; font: inherit; margin-bottom: 20px; padding: 0px; vertical-align: baseline;&quot;&gt;以一個簡單的例子說明使用方法, 例如用 “ls -l” 列出檔案清單, ls 預設是用檔案名稱排序, 想要用檔案大小排序, 可以這樣:&lt;/div&gt;&lt;div class=&quot;shell&quot; style=&quot;background-color: black; border: 1px solid rgb(144, 144, 144); color: white; font-family: Consolas, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 12pt 0px; padding: 8px; vertical-align: baseline; width: 666.391px;&quot;&gt;$ ls -l | sort -n -k 5&lt;/div&gt;&lt;div style=&quot;border: 0px; font: inherit; margin-bottom: 20px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;上面的&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; “5” &lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;代表是&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;第 5 個欄位&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;的意思, 因為 “ls -l” 指令的輸出, 第 5 欄是檔案大小。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; float: none; font: inherit; margin: 10px 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; font: inherit; margin-bottom: 20px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;上面的例子會將資料由小至大排序, 如果想從大至小排序, 可以加入 &lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;“-r”&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt; 參數:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;shell&quot; style=&quot;background-color: black; border: 1px solid rgb(144, 144, 144); color: white; font-family: Consolas, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 12pt 0px; padding: 8px; vertical-align: baseline; width: 666.391px;&quot;&gt;$ ls -l | sort -n -r -k 5&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; font: inherit; margin-bottom: 20px; padding: 0px; vertical-align: baseline;&quot;&gt;另一個例子是用在 df 上, 將檔案系統按使用量排序:&lt;/div&gt;&lt;div class=&quot;shell&quot; style=&quot;background-color: black; border: 1px solid rgb(144, 144, 144); color: white; font-family: Consolas, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 12pt 0px; padding: 8px; vertical-align: baseline; width: 666.391px;&quot;&gt;$ df | sort -n -k 5&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; font: inherit; margin-bottom: 20px; padding: 0px; vertical-align: baseline;&quot;&gt;參數說明:&lt;/div&gt;&lt;div style=&quot;border: 0px; font: inherit; margin-bottom: 20px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;-n 按數值大小排序.&lt;br /&gt;-r 倒轉排序, 即從大至小排序.&lt;br /&gt;-t 指定欄位分隔的字符, 預設是 Tab.&lt;br /&gt;-k 要排序的欄位.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/1672329797591131400/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/httpswww.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/1672329797591131400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/1672329797591131400'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/httpswww.html' title=''/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-8888551216249790431</id><published>2019-10-16T07:48:00.000+08:00</published><updated>2019-10-23T08:29:27.304+08:00</updated><title type='text'>機房建設 » 5G之於資料中心，到底意味著什麼？</title><content type='html'>&lt;br /&gt;文章轉自: http://www.upsapp.com/articledetail.asp?ID=6536&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;機房建設&amp;nbsp; &amp;nbsp;» 5G之於資料中心，到底意味著什麼？&lt;/span&gt;&lt;br /&gt;2019-3-8 7:22:09&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;·&amp;nbsp; 5G無線技術即將到來，當它到來時，將帶來更快、更密集的資料流程，這一趨勢將推動對於資料中心容量的更多需求。那麼，這個資料流程將會是什麼樣的？什麼時候到來？·&amp;nbsp;&lt;br /&gt;&lt;br /&gt;即將到來的5G轉型有望促進移動流量的發展。&lt;br /&gt;　　&lt;br /&gt;　　5G無線技術即將到來，當它到來時，將帶來更快、更密集的資料流程，這一趨勢將推動對於資料中心容量的更多需求。那麼，這個資料流程將會是什麼樣的？什麼時候到來？&lt;br /&gt;　　&lt;br /&gt;　　最近幾周來，5G轉型在資料中心行業領域佔據了中心位置，主要表現在行業會議的主題演講、&amp;nbsp; &amp;nbsp;Equinix公司 和&amp;nbsp; &amp;nbsp;Digital Realty公司 的項目，以及思科公司的最新報告中。而行業分析師們在5G採用的時間和廣度上存在不同的觀點，並且他們的預測受到宣佈炒作和市場行銷的影響而變得難以確定。&lt;br /&gt;　　&lt;br /&gt;　　隨著網路服務提供商和超大規模運營商開始部署下一代網路設備，為2020年及以後的5G服務做好準備，隨著2022年的到來，資料的細流逐漸彙聚成數位海嘯，5G很可能在2019年底開始為資料中心帶來引人注目的業務。&lt;br /&gt;　　&lt;br /&gt;　　瑞士信貸（Credit Suisse）公司證券分析師Sami Badri表示，“我認為5G將成為資料中心行業發展的主要驅動力。互聯網企業將從5G中獲益，5G將成為Equinix、Digital Realty和CoreSite等資料中心運營商新業務的主要推動因素。”　　&lt;br /&gt;　　Badri在1月31日于維吉尼亞州阿什本市舉行的Capre2019資料中心預測大會上表示，“我們正處於這一轉載時期的第一階段。Arista Networks是&amp;nbsp; &amp;nbsp;400Gbps交換機 的領頭羊，這將極大提升網路容量，推動網路設備供應商的進步，這是5G應用的一個有用的領先指標。而其進展預示著需求。”　　&lt;br /&gt;&lt;br /&gt;　　&lt;span style=&quot;font-size: large;&quot;&gt;為什麼5G無線技術很重要&lt;/span&gt;&lt;br /&gt;　　&lt;br /&gt;　　5G無線技術是下一代移動協議，預計將啟用新的資料密集型服務，如自動駕駛汽車，這在當前的無線連接中是無法實現的。如果5G的部署獲得成功，在不同位置之間移動資料將更容易，這一趨勢一直對資料中心業務十分有利。5G技術預計具有三個關鍵屬性：&lt;br /&gt;　　&lt;br /&gt;　　•100Mbps或更高的高頻寬移動寬頻。&lt;br /&gt;　　&lt;br /&gt;　　•支援大規模的機器對機器（M2M）通信，其密度高達每平方公里100,000個連接。&lt;br /&gt;　　&lt;br /&gt;　　•超低延遲通信，為任務關鍵型應用程式提供低於10毫秒的延遲。&lt;br /&gt;　　&lt;br /&gt;　　5G將在數年內部署，隨著新設備的最終確定而廣泛應用。它將需要新的傳輸基礎設施，其中包括數千個蜂窩塔臺和數萬個天線（或稱之為小型蜂窩和分散式天線系統），這些設施將部署在電線杆和其他城市基礎設施上。它還需要部署大量的光纖。&lt;br /&gt;　　　　&lt;br /&gt;　　Equinix公司首席全球解決方案架構師Kelvin Cheung表示，5G轉型將帶來許多好處和許多挑戰。&lt;br /&gt;　　&lt;br /&gt;　　他在互聯網博客上指出，“更快、更低延遲的5G網路基礎設施將極大地促進物聯網、人工智慧、線上遊戲、虛擬/增強現實和智慧城市的發展。但是，在這一切都明朗化之前，目前存在的許多監管、頻譜許可、安全和基礎設施改造問題必須逐個解決。”　　&lt;br /&gt;　　資料中心的5G應用&lt;br /&gt;　　&lt;br /&gt;　　瑞士信貸分析師Badri表示，5G帶來的資料浪潮將為IT基礎設施行業帶來廣泛的業務收益。但並非所有的資料中心都能從中受益。5G資料增長的主要受益者將是專注于互連的資料中心，這就是Equinix、Digital Realty和Core Site等資料中心運營商獲得巨大收益的原因。&lt;br /&gt;　　&lt;br /&gt;　　Badri說，沒有互連元件的批發資料中心提供商的收益將更為有限。Megaport和Packet Fabric等軟體定義網路（SDN）廠商可以幫助資料中心批發商參與市場。&lt;br /&gt;　　&lt;br /&gt;　　Badri說，5G的轉型正在推動向軟體定義的基礎設施的重大轉變，移動提供商正在升級其基礎設施，以支援“雲原生”計算模式。&lt;br /&gt;　　&lt;br /&gt;　　這就是電信公司採用開放計算項目（OCP）來部署低成本“白盒”伺服器和運行複雜SDN軟體的交換機的原因。分析人士認為，開放計算專案（OCP）硬體有機會支援UCPE（通用客戶場所設備），這是主要運營商將雲技術引入電信生態系統的一項舉措，其中包括軟體定義網路（SDN）和網路功能虛擬化（NFV）。&lt;br /&gt;　　&lt;br /&gt;　　“隨著時間的推移，電信公司看起來就像雲計算。”Badri預測。“網路功能虛擬化（NFV）本質上是應用於所有事物的雲計算模式。”　　&lt;br /&gt;　　這就是Equinix公司認為到2020年，網路功能虛擬化（NFV）和虛擬網路應用可以為硬體、軟體和服務開啟價值150億美元的市場的原因。該公司尚未推出公開的網路功能虛擬化（NFV）產品，但正在與早期採用的客戶合作。這標誌著Equinix公司的下一步目標，即逐步向公司的整個全球平臺注入SDN功能，為客戶提供連接世界的服務。&lt;br /&gt;　　&lt;br /&gt;　　&lt;span style=&quot;font-size: large;&quot;&gt;5G和邊緣計算&lt;/span&gt;&lt;br /&gt;　　&lt;br /&gt;　　5G無線基礎設施將成為邊緣計算基礎設施的利器。因此，5G網路的地理位置和相關的業務收入將指導大部分的早期投資。模組化資料中心運營商的生態系統已經出現，以尋求邊緣基礎設施的擴建，其中包括VaporIO、EdgeConneX、EdgeMicro、DartPoints、DataBank、Baselayer和Switch等公司。&lt;br /&gt;　　&lt;br /&gt;　　而資料中心行業規模最大的兩家運營商Equinix公司和Digital Realty公司也看到了5G驅動邊緣計算部署的機會。&lt;br /&gt;　　&lt;br /&gt;　　Equinix公司的Cheung說，“要克服的一個關鍵障礙是5G技術固有的距離限制，這將需要更大數量的5G網路節點之間的近距離放置和互連。服務提供者和企業將需要查看將5G置於數位邊緣的分散式IT和網路基礎設施——靠近商業、人口中心和網路和雲計算服務提供者的數位生態系統。在區域性都市中，接近各種5G網路服務提供商使中小型服務提供者和企業能夠租賃5G網路作為服務。這為那些可能沒有資源通過本地高速、低延遲連接向5G轉型的公司提供了訪問規模更大5G網路服務提供商的許可權。”&lt;br /&gt;　　&lt;br /&gt;　　Digital Realty公司的Tuhafa寫道：“我們開始看到更多的重點放在當地語系化、分散式運算能力上，以支持具有較低延遲和較高彈性的關鍵任務應用程式。但是，任何IT環境始終需要一個集中的核心。畢竟，即使是最先進的微型資料中心也不能完全處理邊緣計算承載的所有任務。”　　</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/8888551216249790431/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/5g.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/8888551216249790431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/8888551216249790431'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/5g.html' title='機房建設 » 5G之於資料中心，到底意味著什麼？'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-9038368559588357524</id><published>2019-10-15T12:25:00.000+08:00</published><updated>2019-10-15T12:25:05.955+08:00</updated><title type='text'>命令群組 - () 與 {} 差在哪？</title><content type='html'>轉自&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://wiki.jikexueyuan.com/project/13-questions-of-shell/brackets-and-braces.html&quot;&gt;http://wiki.jikexueyuan.com/project/13-questions-of-shell/brackets-and-braces.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 34.0pt; mso-line-height-rule: exactly; mso-outline-level: 1; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 22.0pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 18.0pt;&quot;&gt;() &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 22.0pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 18.0pt;&quot;&gt;與&lt;span lang=&quot;EN-US&quot;&gt; {} &lt;/span&gt;差在哪？&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;嗯，這次輕鬆一下，不講太多&lt;span lang=&quot;EN-US&quot;&gt;... ^_^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;先說一下，為何要用&lt;span lang=&quot;EN-US&quot;&gt; () &lt;/span&gt;或者&lt;span lang=&quot;EN-US&quot;&gt;{} &lt;/span&gt;好了。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;許多時候，我們在&lt;span lang=&quot;EN-US&quot;&gt; shell &lt;/span&gt;操作上，需要在 一定的條件下執行多個命令，也就是說， 要麼不執行，要麼就全執行，而不是每次 依序的判斷是否要執行下一個命令。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;或者，要從一些命令執行的先後次序中得到結果， 如算數運算的&lt;span lang=&quot;EN-US&quot;&gt; 2*(3+4) &lt;/span&gt;那樣&lt;span lang=&quot;EN-US&quot;&gt;...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;這時候，我們就可以引入&lt;span lang=&quot;EN-US&quot;&gt; &quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;命令群組&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&quot;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;command group&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;的概念：將許多命令集中處理。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;在&lt;span lang=&quot;EN-US&quot;&gt; shell&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;command line&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;中，一般人或許不太計較&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;( )&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;與&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;{ }&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;這兩對符號的差異，雖然兩者都可以將多個命令當作群組處理， 但若從技術細節上，卻是很不一樣的：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l0 level1 lfo1; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;( )&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;將&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;command group&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;置於&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;sub-shell(&lt;/span&gt;&lt;span style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;子&lt;span lang=&quot;EN-US&quot;&gt;shell)&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;中去執行，也稱&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;nested sub-shell&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l0 level1 lfo1; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;{ }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;則是在同一個&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;shell&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;內完成，也稱&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;non-named command group&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;若你對上一章的&lt;span lang=&quot;EN-US&quot;&gt; fork &lt;/span&gt;與&lt;span lang=&quot;EN-US&quot;&gt;source &lt;/span&gt;的概念還記得的話， 那就不難理解兩者的差異了。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;要是在&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;command group&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;中扯上變數及其他環境的修改， 我們可以根據不同的需求來使用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;或&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;{}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;。 通常而言&lt;span lang=&quot;EN-US&quot;&gt;, &lt;/span&gt;若所作的修改是臨時的，且不想影響原有或以後的設定， 那我們就使用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;nested sub-shell&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;即&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;()&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;反之，則用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;non-named command group&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;即&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;{}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;是的，光從&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;command line&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;來看，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;與&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;{}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;差別就講完了，夠輕鬆吧&lt;span lang=&quot;EN-US&quot;&gt;~~~, ^_^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;然而，這兩個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;meta&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;用在其他&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;command meta&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;或領域中&lt;span lang=&quot;EN-US&quot;&gt; (&lt;/span&gt;如&lt;span lang=&quot;EN-US&quot;&gt; Regular Expression)&lt;/span&gt;， 還是有很多差別的。 只是，我不打算再去說明了，留給讀者慢慢發掘好了&lt;span lang=&quot;EN-US&quot;&gt;...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;我這裡只想補充一個概念，就是&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;。 所謂&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;，就是用一個名字去命名一個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;command group&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;然後再調用這個名字去執行&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;command group&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;從&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;non-named command group&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;來推斷， 大概你也可以推測到我要說的是&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;{}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;了吧？&lt;span lang=&quot;EN-US&quot;&gt;(yes! &lt;/span&gt;你真聰明&lt;span lang=&quot;EN-US&quot;&gt; ^_^)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;在&lt;span lang=&quot;EN-US&quot;&gt; bash &lt;/span&gt;中，&lt;span lang=&quot;EN-US&quot;&gt;function &lt;/span&gt;的定義方式有兩種：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l1 level1 lfo2; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;方式一：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;function function_name {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;command1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;command2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;command3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;.....&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l2 level1 lfo3; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;方式二：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;function_name () {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;command1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;command2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;command3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;......&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;用哪一種方式無所謂， 只是碰到所定義的名稱與現有的命令或者別名衝突的話， 方式二或許會失敗。 但方式二起碼可以少打個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;這一串英文字元， 對懶人來說&lt;span lang=&quot;EN-US&quot;&gt; (&lt;/span&gt;如我&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;，有何樂而不為呢？&lt;span lang=&quot;EN-US&quot;&gt;...^_^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;function&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;在一定程度上來說，也可以稱為&lt;span lang=&quot;EN-US&quot;&gt; &quot;&lt;/span&gt;函數&lt;span lang=&quot;EN-US&quot;&gt;&quot;&lt;/span&gt;， 但請不要與傳統程式設計所使用的&lt;span lang=&quot;EN-US&quot;&gt; &quot;&lt;/span&gt;函數&lt;span lang=&quot;EN-US&quot;&gt;&quot;(library) &lt;/span&gt;搞混了， 畢竟兩者差異很大。 唯一相同的是，我們都可以隨時用&lt;span lang=&quot;EN-US&quot;&gt; &quot;&lt;/span&gt;已定義的名稱&lt;span lang=&quot;EN-US&quot;&gt;&quot; &lt;/span&gt;來調用它們&lt;span lang=&quot;EN-US&quot;&gt;...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;若我們在&lt;span lang=&quot;EN-US&quot;&gt; shell &lt;/span&gt;操作中，需要不斷地重複某些命令， 我們首先想到的，或許是將命令寫成&lt;span lang=&quot;EN-US&quot;&gt; shell &lt;/span&gt;腳本&lt;span lang=&quot;EN-US&quot;&gt; (shell script)&lt;/span&gt;。 不過，我們也可以寫成&lt;span lang=&quot;EN-US&quot;&gt; function, &lt;/span&gt;然後在&lt;span lang=&quot;EN-US&quot;&gt; command line &lt;/span&gt;中打上&lt;span lang=&quot;EN-US&quot;&gt; function_name &lt;/span&gt;就可當一般的&lt;span lang=&quot;EN-US&quot;&gt; shell script &lt;/span&gt;使用了。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;若只是你在&lt;span lang=&quot;EN-US&quot;&gt; shell &lt;/span&gt;中定義的&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;function&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;除了用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;unset&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;function_name &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;取消外， 一旦你退出&lt;span lang=&quot;EN-US&quot;&gt; shell&lt;/span&gt;，&lt;span lang=&quot;EN-US&quot;&gt; function &lt;/span&gt;也跟著消失。 然而，在&lt;span lang=&quot;EN-US&quot;&gt; script &lt;/span&gt;中使用&lt;span lang=&quot;EN-US&quot;&gt; function &lt;/span&gt;卻有許多好處， 除了提高整體&lt;span lang=&quot;EN-US&quot;&gt; script &lt;/span&gt;的執行性能外&lt;span lang=&quot;EN-US&quot;&gt; (&lt;/span&gt;因為已經載入&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;， 還可以節省許多重複的代碼&lt;span lang=&quot;EN-US&quot;&gt;......&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;簡單而言，若你會將多個命令寫成&lt;span lang=&quot;EN-US&quot;&gt; script &lt;/span&gt;以供調用的話， 那你可以將&lt;span lang=&quot;EN-US&quot;&gt; function &lt;/span&gt;看成&lt;span lang=&quot;EN-US&quot;&gt; script &lt;/span&gt;中&lt;span lang=&quot;EN-US&quot;&gt; script&lt;/span&gt;。&lt;span lang=&quot;EN-US&quot;&gt;... ^_^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;而且通過上一章節介紹的&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;source&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;命令， 我們可以自行定義許許多多好用的&lt;span lang=&quot;EN-US&quot;&gt; function&lt;/span&gt;， 在集中寫在特定文件中， 然後，在其他的&lt;span lang=&quot;EN-US&quot;&gt; script &lt;/span&gt;中用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;source&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;將它們載入，並反復執行。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;若你是&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;RedHat Linux&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;的使用者， 或許，已經猜出&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;/etc/rc.d/init.d/functions&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;這個檔時啥作用了&lt;span lang=&quot;EN-US&quot;&gt;~~~ ^_^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;okay&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 新細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;，說要輕鬆點的嘛，那這次就暫時寫到這吧。 祝大家學習愉快，&lt;span lang=&quot;EN-US&quot;&gt;^_^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/9038368559588357524/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/blog-post_15.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/9038368559588357524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/9038368559588357524'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/blog-post_15.html' title='命令群組 - () 與 {} 差在哪？'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-8691601430449311143</id><published>2019-10-15T12:20:00.002+08:00</published><updated>2019-10-15T12:20:22.783+08:00</updated><title type='text'>命令替換 - (())與()還有${}差在哪？</title><content type='html'>轉自 :&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://wiki.jikexueyuan.com/project/13-questions-of-shell/eight.html&quot;&gt;http://wiki.jikexueyuan.com/project/13-questions-of-shell/eight.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 36.0pt; mso-line-height-rule: exactly; mso-outline-level: 1; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: 1pt none windowtext; color: #333333; font-family: 微軟正黑體, sans-serif; padding: 0cm;&quot;&gt;(( ))&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; color: #333333; font-family: 微軟正黑體, sans-serif; padding: 0cm;&quot;&gt;與&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: 微軟正黑體, sans-serif;&quot;&gt;( )&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: 微軟正黑體, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;還有&lt;span lang=&quot;EN-US&quot;&gt;${ }&lt;/span&gt;差在哪？&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 19.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;我們上一章介紹了&lt;span lang=&quot;EN-US&quot;&gt;( )&lt;/span&gt;與&lt;span lang=&quot;EN-US&quot;&gt;{ }&lt;/span&gt;的不同，這次讓我們擴展一下，看看更多的變化：&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;( )&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;與&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;{ }&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;又是啥玩意兒呢？&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: 22pt;&quot;&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: 微軟正黑體, sans-serif; font-size: 10.5pt;&quot;&gt;在&lt;span lang=&quot;EN-US&quot;&gt;bash shell&lt;/span&gt;中&lt;span lang=&quot;EN-US&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: yellow; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: 微軟正黑體, sans-serif; font-size: 9.5pt;&quot;&gt;&lt;b&gt;$( )&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: 微軟正黑體, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;與&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;`&amp;nbsp; `&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;反引號&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;都是用來做&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: 微軟正黑體, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;命令替換&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; color: #666666; font-family: 微軟正黑體, sans-serif; font-size: 10.5pt;&quot;&gt;(command substitution)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: 微軟正黑體, sans-serif; font-size: 10.5pt;&quot;&gt;的。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: 22pt;&quot;&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: 微軟正黑體, sans-serif; font-size: 10.5pt;&quot;&gt;所謂的&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: 微軟正黑體, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;命令替換&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: 微軟正黑體, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 10.5pt;&quot;&gt;與我們第五章學過的&lt;/span&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;變數替換&lt;/b&gt;&lt;span style=&quot;background-color: white; font-size: 10.5pt;&quot;&gt;差不多，都是用來&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(249, 242, 244); color: #2d85ca; font-family: 微軟正黑體, sans-serif;&quot;&gt;&lt;b&gt;重組命令列&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: 微軟正黑體, sans-serif; font-size: 10.5pt;&quot;&gt;：完成&lt;span lang=&quot;EN-US&quot;&gt; ` ` &lt;/span&gt;或者&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: rgb(249, 242, 244); color: #2d85ca; font-family: 微軟正黑體, sans-serif; font-size: 9.5pt;&quot;&gt;$( )&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: 微軟正黑體, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;裡面的 命令，將其結果&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;替換&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;出來，再&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;重組命令列&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;例如：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ echo the last sunday is $(date -d &quot;last sunday&quot; +%Y-%m-%d)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;如此便可方便得到上一個星期天的日期了&lt;span lang=&quot;EN-US&quot;&gt;...^_^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;在操作上， 用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;( )&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;或&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;‘‘&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;都無所謂，只是我個人比較喜歡用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;( )&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;，理由是：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 0cm; mso-line-height-rule: exactly; mso-list: l3 level1 lfo1; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 微軟正黑體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;1.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;``(&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;反引號&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;很容易與&lt;span lang=&quot;EN-US&quot;&gt;&#39;&#39;(&lt;/span&gt;單引號&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;搞混亂，尤其對初學者來說。 有時在一些奇怪的字形顯示中，兩種符號是一模一樣的&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;只取兩點&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;。 當然了有經驗的朋友還是一眼就能分辨兩者。只是，若能更好的避免混亂， 又何樂而不為呢？ &lt;span lang=&quot;EN-US&quot;&gt;^_^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 0cm; mso-line-height-rule: exactly; mso-list: l3 level1 lfo1; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.0pt; mso-bidi-font-family: 微軟正黑體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;2.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.0pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;在多次的複合替換中，&lt;span lang=&quot;EN-US&quot;&gt; ``&lt;/span&gt;需要額外的轉義&lt;span lang=&quot;EN-US&quot;&gt;(escape, )&lt;/span&gt;處理，而&lt;span lang=&quot;EN-US&quot;&gt;$()&lt;/span&gt;則比較直觀。 例如，一個錯誤的使用的例子：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;command1 `command2 `command3` `&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;原來的本意是要在&lt;span lang=&quot;EN-US&quot;&gt;command2 `command3` , &lt;/span&gt;先將&lt;span lang=&quot;EN-US&quot;&gt;command3&lt;/span&gt;替換出來給&lt;span lang=&quot;EN-US&quot;&gt;command2&lt;/span&gt;處理， 然後再將&lt;span lang=&quot;EN-US&quot;&gt;command2&lt;/span&gt;的處理結果，給&lt;span lang=&quot;EN-US&quot;&gt;command1&lt;/span&gt;來處理。 然而真正的結果在命令列中卻是分成了&lt;span lang=&quot;EN-US&quot;&gt;`command2`&lt;/span&gt;與&lt;span lang=&quot;EN-US&quot;&gt; ``&lt;/span&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;正確的輸入應該如下：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;command1 `command2 \`command3\` `&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;要不然換成&lt;span lang=&quot;EN-US&quot;&gt;$()&lt;/span&gt;就沒有問題了：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;command1 $(commmand2 $(command3))&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;只要你喜歡，做多少層的替換都沒有問題&lt;span lang=&quot;EN-US&quot;&gt;~~~^_^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;不過，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;( )&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;並不是沒有弊端的&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;...&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;首先，&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;‘‘&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;基本上可用在所有的&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;unixshell&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;中使用，若寫成&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;shellscript&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;，其移植性比較高。而&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;( )&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;並不是每一種&lt;span lang=&quot;EN-US&quot;&gt;shell&lt;/span&gt;都能使用，我只能說， 若你用&lt;span lang=&quot;EN-US&quot;&gt;bash2&lt;/span&gt;的話，肯定沒問題&lt;span lang=&quot;EN-US&quot;&gt;... ^_^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;接下來，再讓我們看看&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;吧&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;...&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;它其實就是用來做變數替換用的啦。一般情況下，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;與&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;並沒有啥不一樣。但是用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;{ }&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;會比較精准的界定變數名稱的範圍， 比方說&lt;span lang=&quot;EN-US&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ A=B&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ echo $AB&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;原本是打算先將&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;A&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;的結果替換出來，然後在其後補一個字母&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;B&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;；但命令列上，真正的結果卻是替換變數名稱為&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;AB&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;的值出來&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;...&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;若使用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;{ }&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;就沒有問題了：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ A=B&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ echo ${A}B&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ BB&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;不過，假如你只看到&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;只能用來界定變數名稱的話， 那你就實在太小看&lt;span lang=&quot;EN-US&quot;&gt;bash&lt;/span&gt;了。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;為了完整起見，我這裡再用一些例子加以說明&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;的一些 特異功能： 假設我們定義了一個變數&lt;span lang=&quot;EN-US&quot;&gt;file&lt;/span&gt;為：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;file=/dir1/dir2/dir3/my.file.txt&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;我們可以用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;分別替換獲得不同的值：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 2; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;shell &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;字串的非貪婪&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;最小匹配&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;左刪除&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file#*/}&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;#&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;其值為：&lt;span lang=&quot;EN-US&quot;&gt;dir1/dir2/dir3/my.file.txt&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;拿掉第一個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;及其左邊的字串，其結果為：&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;dir1/dir2/dir3/my.file.txt&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file#*.}&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;#&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;其值為：&lt;span lang=&quot;EN-US&quot;&gt;file.txt&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;拿掉第一個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;及其左邊的字串，其結果為：&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;file.txt&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 2; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;shell &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;字串的貪婪&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;最大匹配&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;左刪除&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file##*/} #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;其值為：&lt;span lang=&quot;EN-US&quot;&gt;my.file.txt&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;拿掉最後一個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;及其左邊的字串，其結果為：&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;my.file.txt&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file##*.} #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;其值為：&lt;span lang=&quot;EN-US&quot;&gt;txt&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;拿掉最後一個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;及其左邊的字串，其結果為：&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;txt&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 2; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;shell &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;字串的非貪婪&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;最小匹配&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;右刪除&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file%/*}&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;#&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;其值為：&lt;span lang=&quot;EN-US&quot;&gt;/dir1/dir2/dir3&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;拿掉最後一個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;及其右邊的字串，其結果為：&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;/dir1/dir2/dir3&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file%.*}&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;#&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;其值為：&lt;span lang=&quot;EN-US&quot;&gt;/dir1/dir2/dir3/my.file&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;拿掉最後一個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;及其右邊的字串，其結果為：&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;/dir1/dir2/dir3/my.file&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 2; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;shell &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;字串的貪婪&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;最大匹配&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;右刪除&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file%%/*}&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;#&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;其值為：其值為空。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;拿掉第一個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;及其右邊的字串，其結果為： 空串。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file%%.*}&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;#&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;其值為：&lt;span lang=&quot;EN-US&quot;&gt;/dir1/dir2/dir3/my&lt;/span&gt;。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;拿掉第一個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;及其右邊的字串，其結果為：&lt;span lang=&quot;EN-US&quot;&gt; /dir1/dir2/dir3/my&lt;/span&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;Tips:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;記憶方法：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;是去掉左邊&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;在鍵盤上&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;在&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;的左邊&lt;span lang=&quot;EN-US&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;是去掉右邊&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;在鍵盤上&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;在&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;的右邊&lt;span lang=&quot;EN-US&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;單個符號是最小匹配&lt;span lang=&quot;EN-US&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;兩個符號是最大匹配&lt;span lang=&quot;EN-US&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 2; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;shell &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;字串取子串：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;${file:0:5} #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;提取最左邊的&lt;span lang=&quot;EN-US&quot;&gt;5&lt;/span&gt;個字元：&lt;span lang=&quot;EN-US&quot;&gt;/dir1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;${file:5:5} #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;提取第&lt;span lang=&quot;EN-US&quot;&gt;5&lt;/span&gt;個字元及其右邊的&lt;span lang=&quot;EN-US&quot;&gt;5&lt;/span&gt;個字元&lt;span lang=&quot;EN-US&quot;&gt;:/dir2&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;shell &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;字串取子串的格式：&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${s:pos:length}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;取字串&lt;span lang=&quot;EN-US&quot;&gt; s &lt;/span&gt;的子串：從&lt;span lang=&quot;EN-US&quot;&gt; pos &lt;/span&gt;位置開始的字元&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;包括該字元&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;的長度為&lt;span lang=&quot;EN-US&quot;&gt; length &lt;/span&gt;的的子串； 其中&lt;span lang=&quot;EN-US&quot;&gt;pos&lt;/span&gt;為子串的首字元，在&lt;span lang=&quot;EN-US&quot;&gt; s &lt;/span&gt;中位置；&lt;span lang=&quot;EN-US&quot;&gt; length&lt;/span&gt;為子串的長度；&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;Note:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;字串中字元的起始編號為&lt;span lang=&quot;EN-US&quot;&gt;0.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 2; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;shell &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;字串變數值的替換&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file/dir/path}&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;#&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;將第一個&lt;span lang=&quot;EN-US&quot;&gt;dir&lt;/span&gt;替換為&lt;span lang=&quot;EN-US&quot;&gt;path&lt;/span&gt;：&lt;span lang=&quot;EN-US&quot;&gt;/path1/dir2/dir3/my.file.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file//dir/path} #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;將全部的&lt;span lang=&quot;EN-US&quot;&gt;dir&lt;/span&gt;替換為&lt;span lang=&quot;EN-US&quot;&gt;path&lt;/span&gt;：&lt;span lang=&quot;EN-US&quot;&gt;/path1/path2/path3/my.file.txt&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;shell &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;字串變數值的替換格式：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l1 level1 lfo2; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;首次替換：&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${s/src_pattern/dst_pattern}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;將字串&lt;span lang=&quot;EN-US&quot;&gt;s&lt;/span&gt;中的第一個&lt;span lang=&quot;EN-US&quot;&gt;src_pattern&lt;/span&gt;替換為&lt;span lang=&quot;EN-US&quot;&gt;dst_pattern&lt;/span&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l1 level1 lfo2; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;全部替換：&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${s//src_pattern/dst_pattern}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;將字串&lt;span lang=&quot;EN-US&quot;&gt;s&lt;/span&gt;中的所有出現的&lt;span lang=&quot;EN-US&quot;&gt;src_pattern&lt;/span&gt;替換為&lt;span lang=&quot;EN-US&quot;&gt;dst_pattern.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: 22pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: yellow; color: #333333; font-family: 微軟正黑體, sans-serif; font-size: 13.5pt;&quot;&gt;${ }&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: 微軟正黑體, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;還可針對變數的不同狀態&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;沒設定、空值、非空值&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;進行賦值&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l2 level1 lfo3; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file-my.file.txt}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;#&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;如果&lt;span lang=&quot;EN-US&quot;&gt;file&lt;/span&gt;沒有設定，則使用 使用&lt;span lang=&quot;EN-US&quot;&gt;my.file.txt&lt;/span&gt;作為返回值&lt;span lang=&quot;EN-US&quot;&gt;, &lt;/span&gt;否則返回&lt;span lang=&quot;EN-US&quot;&gt;${file};(&lt;/span&gt;空值及非空值時，不作處理。&lt;span lang=&quot;EN-US&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l2 level1 lfo3; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file:-my.file.txt}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;#&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;如果&lt;span lang=&quot;EN-US&quot;&gt;file&lt;/span&gt;沒有設定或者&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;為空值&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;均使用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;my.file.txt&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;作為其返回值，否則，返回&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;{file}.(${file} &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;為非空值時，不作處理&lt;span lang=&quot;EN-US&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l2 level1 lfo3; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file+my.file.txt}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;#&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;如果&lt;span lang=&quot;EN-US&quot;&gt;file&lt;/span&gt;已設定&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;為空值或非空值&lt;span lang=&quot;EN-US&quot;&gt;), &lt;/span&gt;則使用&lt;span lang=&quot;EN-US&quot;&gt;my.file.txt&lt;/span&gt;作為其返回值，否則不作處理。&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;未設定時，不作處理&lt;span lang=&quot;EN-US&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l2 level1 lfo3; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file:+my.file.txt}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;#&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;如果&lt;span lang=&quot;EN-US&quot;&gt;${file}&lt;/span&gt;為非空值&lt;span lang=&quot;EN-US&quot;&gt;, &lt;/span&gt;則使用&lt;span lang=&quot;EN-US&quot;&gt;my.file.txt&lt;/span&gt;作為其返回值，否則，&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;未設定或者為空值時&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;不作處理。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l2 level1 lfo3; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file=my.file.txt}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;#&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;如果&lt;span lang=&quot;EN-US&quot;&gt;file&lt;/span&gt;為設定，則將&lt;span lang=&quot;EN-US&quot;&gt;file&lt;/span&gt;賦值為&lt;span lang=&quot;EN-US&quot;&gt;my.file.txt&lt;/span&gt;，同時將&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;作為其返回值；否則，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;已設定&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;為空值或非空值&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;，則返回&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;{file}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l2 level1 lfo3; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file:=my.file.txt}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;#&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;如果&lt;span lang=&quot;EN-US&quot;&gt;file&lt;/span&gt;未設定或者&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;為空值&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;則&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;my.file.txt&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;作為其返回值，同時，將&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;{file}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;賦值為&lt;span lang=&quot;EN-US&quot;&gt;my.file.txt&lt;/span&gt;，否則，&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;非空值時&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;不作處理。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l2 level1 lfo3; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file?my.file.txt}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;#&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;如果&lt;span lang=&quot;EN-US&quot;&gt;file&lt;/span&gt;沒有設定，則將&lt;span lang=&quot;EN-US&quot;&gt;my.file.txt&lt;/span&gt;輸出至&lt;span lang=&quot;EN-US&quot;&gt;STDERR, &lt;/span&gt;否側， 已設定&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;空值與非空值時&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;，不作處理。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l2 level1 lfo3; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${file:?my.file.txt}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;#&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;若果&lt;span lang=&quot;EN-US&quot;&gt;file&lt;/span&gt;未設定或者為空值，則將&lt;span lang=&quot;EN-US&quot;&gt;my.file.txt&lt;/span&gt;輸出至&lt;span lang=&quot;EN-US&quot;&gt;STDERR&lt;/span&gt;，否則， 非空值時，不作任何處理。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;Tips:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;以上的理解在於，你一定要分清楚，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;unset&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;與&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;以及&lt;span lang=&quot;EN-US&quot;&gt;non-null&lt;/span&gt;這三種狀態的賦值； 一般而言，與&lt;span lang=&quot;EN-US&quot;&gt;null&lt;/span&gt;有關，若不帶&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;:&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;, null&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;不受影響； 若帶&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;:&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;則連&lt;span lang=&quot;EN-US&quot;&gt;null&lt;/span&gt;值也受影響。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 2; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;計算&lt;span lang=&quot;EN-US&quot;&gt; shell &lt;/span&gt;字串變數的長度：&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; mso-bidi-font-family: 細明體; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt;&quot;&gt;${#var}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;${#file}&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;#&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;其值為&lt;span lang=&quot;EN-US&quot;&gt;27, &lt;/span&gt;因為&lt;span lang=&quot;EN-US&quot;&gt;/dir1/dir2/dir3/my.file.txt&lt;/span&gt;剛好為&lt;span lang=&quot;EN-US&quot;&gt;27&lt;/span&gt;個字元。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 2; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;bash &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;陣列&lt;span lang=&quot;EN-US&quot;&gt;(array)&lt;/span&gt;的處理方法&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;接下來，為大家介紹一下&lt;span lang=&quot;EN-US&quot;&gt;bash&lt;/span&gt;的陣列&lt;span lang=&quot;EN-US&quot;&gt;(array)&lt;/span&gt;的處理方法。 一般而言&lt;span lang=&quot;EN-US&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;A=&quot;a b c def&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;這樣的變數只是將&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$A&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;替換為一個字串， 但是改為&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;A=(a b c def)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;則是將&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$A&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;定義為陣列&lt;span lang=&quot;EN-US&quot;&gt;....&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 3; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;陣列替換方法可參考如下方法&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${A[@]} #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;方法一&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${A[*]} #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;方法二&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;以上兩種方法均可以得到：&lt;span lang=&quot;EN-US&quot;&gt;a b c def, &lt;/span&gt;即陣列的全部元素。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 3; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;訪問陣列的成員&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${A[0]}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;其中，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${A[0]}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;可得到&lt;span lang=&quot;EN-US&quot;&gt;a, &lt;/span&gt;即陣列&lt;span lang=&quot;EN-US&quot;&gt;A&lt;/span&gt;的第一個元素， 而&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${A[1]}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;則為陣列&lt;span lang=&quot;EN-US&quot;&gt;A&lt;/span&gt;的第二元素，依次類推。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 3; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;陣列的&lt;span lang=&quot;EN-US&quot;&gt; length&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${#A[@]} #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;方法一&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${#A[*]} #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;方法二&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;以上兩種方法均可以得到陣列的長度&lt;span lang=&quot;EN-US&quot;&gt;: 4, &lt;/span&gt;即陣列的所有元素的個數。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;回憶一下，針對字串的長度計算，使用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${#str_var}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;； 我們同樣可以將該方法應用于陣列的成員&lt;span lang=&quot;EN-US&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${#A[0]}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;其中，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${#A[0]}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;可以得到：&lt;span lang=&quot;EN-US&quot;&gt;1&lt;/span&gt;，即陣列&lt;span lang=&quot;EN-US&quot;&gt;A&lt;/span&gt;的第一個元素&lt;span lang=&quot;EN-US&quot;&gt;(a)&lt;/span&gt;的長度； 同理，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;${#A[3]}&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;可以得到&lt;span lang=&quot;EN-US&quot;&gt;: 3, &lt;/span&gt;即陣列&lt;span lang=&quot;EN-US&quot;&gt;A&lt;/span&gt;的第&lt;span lang=&quot;EN-US&quot;&gt;4&lt;/span&gt;個元素&lt;span lang=&quot;EN-US&quot;&gt;(def)&lt;/span&gt;的長度。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 3; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;陣列元素的重新賦值&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;A[3]=xyz&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;將陣列&lt;span lang=&quot;EN-US&quot;&gt;A&lt;/span&gt;的第四個元素重新定義為&lt;span lang=&quot;EN-US&quot;&gt;xyz&lt;/span&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;Tips:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;諸如此類的&lt;span lang=&quot;EN-US&quot;&gt;...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;能夠善用&lt;span lang=&quot;EN-US&quot;&gt;bash&lt;/span&gt;的&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: none windowtext 1.0pt; color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.0pt; mso-bidi-font-family: 新細明體; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Arial Unicode MS&amp;quot;; mso-border-alt: none windowtext 0cm; mso-font-kerning: 0pt; padding: 0cm;&quot;&gt;與&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;{}&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;可以大大提高及 簡化&lt;span lang=&quot;EN-US&quot;&gt;shell&lt;/span&gt;在變數上的處理能力哦&lt;span lang=&quot;EN-US&quot;&gt;~~~^_^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-outline-level: 3; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;$(())&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 13.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;作用&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;好了，最後為大家介紹&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$(())&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;的用途吧：&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$(())&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;是用來作整數運算的&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;在&lt;span lang=&quot;EN-US&quot;&gt;bash&lt;/span&gt;中，&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$(())&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;的整數運算子號大致有這些：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l0 level1 lfo4; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;+- * / #&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;分別為&lt;span lang=&quot;EN-US&quot;&gt;&quot;&lt;/span&gt;加、減、乘、除&lt;span lang=&quot;EN-US&quot;&gt;&quot;&lt;/span&gt;。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l0 level1 lfo4; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;% #&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;餘數運算&lt;span lang=&quot;EN-US&quot;&gt;,(&lt;/span&gt;模數運算&lt;span lang=&quot;EN-US&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; margin-left: 15.0pt; mso-line-height-rule: exactly; mso-list: l0 level1 lfo4; mso-pagination: widow-orphan; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: Symbol; mso-font-kerning: 0pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;amp; | ^ ! #&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;分別為&lt;span lang=&quot;EN-US&quot;&gt;&quot;AND&lt;/span&gt;、&lt;span lang=&quot;EN-US&quot;&gt;OR&lt;/span&gt;、&lt;span lang=&quot;EN-US&quot;&gt;XOR&lt;/span&gt;、&lt;span lang=&quot;EN-US&quot;&gt;NOT&quot;&lt;/span&gt;運算。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;例如：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ a=5; b=7; c=2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ echo $(( a + b * c ))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;19&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ echo $(( (a + b)/c ))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ echo $(( (a * b) % c ))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;在&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$(())&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;中的變數名稱， 可以在其前面加&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;符號來替換， 也可以不用，如：&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$(( $a + $b * $c ))&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;也可以得到&lt;span lang=&quot;EN-US&quot;&gt;19&lt;/span&gt;的結果。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;此外，&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$(())&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;還可作不同進制&lt;span lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;如二進位、八進制、十六進位&lt;span lang=&quot;EN-US&quot;&gt;)&lt;/span&gt;的運算， 只是輸出結果均為十進位的。&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;echo $(( 16#2a )) #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;輸出結果為：&lt;span lang=&quot;EN-US&quot;&gt;42&lt;/span&gt;，&lt;span lang=&quot;EN-US&quot;&gt;(16&lt;/span&gt;進制的&lt;span lang=&quot;EN-US&quot;&gt;2a)&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;以一個實用的例子來看看吧&lt;span lang=&quot;EN-US&quot;&gt; : &lt;/span&gt;假如當前的&lt;span lang=&quot;EN-US&quot;&gt;umask&lt;/span&gt;是&lt;span lang=&quot;EN-US&quot;&gt;022,&lt;/span&gt;那麼新建檔的許可權即為：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ umask 022&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;$ echo &quot;obase=8; $(( 8#666 &amp;amp; (8#777 ^ 8#$(umask)) ))&quot; | bc&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;644&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;事實上，單純用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;(())&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;也可以重定義變數值，或作&lt;span lang=&quot;EN-US&quot;&gt; testing&lt;/span&gt;：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 7.0pt 7.0pt 7.0pt 7.0pt;&quot;&gt; &lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;a=5; ((a++)) #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;可將&lt;span lang=&quot;EN-US&quot;&gt;$a &lt;/span&gt;重定義為&lt;span lang=&quot;EN-US&quot;&gt;6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;a=5; ((a--)) #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;可將&lt;span lang=&quot;EN-US&quot;&gt;$a &lt;/span&gt;重定義為&lt;span lang=&quot;EN-US&quot;&gt;4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: 22.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-line-height-rule: exactly; mso-padding-alt: 7.0pt 7.0pt 7.0pt 7.0pt; mso-pagination: widow-orphan; padding: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;a=5; b=7; ((a&amp;lt; b)) #&lt;/span&gt;&lt;span style=&quot;color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;會得到&lt;span lang=&quot;EN-US&quot;&gt;0 (true)&lt;/span&gt;返回值。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.0pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;常見的用於&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;(())&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;的測試符號有如下這些：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background: white; border-collapse: collapse; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 750px;&quot;&gt; &lt;thead&gt;&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;   &lt;td style=&quot;border: solid #DDDDDD 1.0pt; mso-border-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;   &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;符號&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-left: none; border: solid #DDDDDD 1.0pt; mso-border-alt: solid #DDDDDD .75pt; mso-border-left-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;   &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;符號名稱&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/thead&gt; &lt;tbody&gt;&lt;tr style=&quot;mso-yfti-irow: 1;&quot;&gt;  &lt;td style=&quot;border-top: none; border: solid #DDDDDD 1.0pt; mso-border-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;lt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;border-bottom: solid #DDDDDD 1.0pt; border-left: none; border-right: solid #DDDDDD 1.0pt; border-top: none; mso-border-alt: solid #DDDDDD .75pt; mso-border-left-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;小於號&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 2;&quot;&gt;  &lt;td style=&quot;background: #F8F8F8; border-top: none; border: solid #DDDDDD 1.0pt; mso-border-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;background: #F8F8F8; border-bottom: solid #DDDDDD 1.0pt; border-left: none; border-right: solid #DDDDDD 1.0pt; border-top: none; mso-border-alt: solid #DDDDDD .75pt; mso-border-left-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;大於號&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 3;&quot;&gt;  &lt;td style=&quot;border-top: none; border: solid #DDDDDD 1.0pt; mso-border-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;lt;=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;border-bottom: solid #DDDDDD 1.0pt; border-left: none; border-right: solid #DDDDDD 1.0pt; border-top: none; mso-border-alt: solid #DDDDDD .75pt; mso-border-left-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;小於或等於&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 4;&quot;&gt;  &lt;td style=&quot;background: #F8F8F8; border-top: none; border: solid #DDDDDD 1.0pt; mso-border-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&amp;gt;=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;background: #F8F8F8; border-bottom: solid #DDDDDD 1.0pt; border-left: none; border-right: solid #DDDDDD 1.0pt; border-top: none; mso-border-alt: solid #DDDDDD .75pt; mso-border-left-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;大於或等於&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 5;&quot;&gt;  &lt;td style=&quot;border-top: none; border: solid #DDDDDD 1.0pt; mso-border-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;==&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;border-bottom: solid #DDDDDD 1.0pt; border-left: none; border-right: solid #DDDDDD 1.0pt; border-top: none; mso-border-alt: solid #DDDDDD .75pt; mso-border-left-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;等於&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style=&quot;mso-yfti-irow: 6; mso-yfti-lastrow: yes;&quot;&gt;  &lt;td style=&quot;background: #F8F8F8; border-top: none; border: solid #DDDDDD 1.0pt; mso-border-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;!=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;background: #F8F8F8; border-bottom: solid #DDDDDD 1.0pt; border-left: none; border-right: solid #DDDDDD 1.0pt; border-top: none; mso-border-alt: solid #DDDDDD .75pt; mso-border-left-alt: solid #DDDDDD .75pt; mso-border-top-alt: solid #DDDDDD .75pt; padding: 4.5pt 9.75pt 4.5pt 9.75pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;不等於&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;Note:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;使用&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;(())&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;作整數測試時， 請不要跟&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: #F9F2F4; color: #2d85ca; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 9.5pt; mso-bidi-font-family: 細明體; mso-font-kerning: 0pt;&quot;&gt;[]&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;的整數測試搞混亂了。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;更多的測試，我們將于第&lt;span lang=&quot;EN-US&quot;&gt;10&lt;/span&gt;章為大家介紹。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #999999; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;怎樣？ 好玩吧&lt;span lang=&quot;EN-US&quot;&gt;... ^_^&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;okay&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;，這次暫時說這麼多&lt;span lang=&quot;EN-US&quot;&gt;...&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.0pt; mso-line-height-rule: exactly; mso-pagination: widow-orphan;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;上面的介紹，並沒有詳列每一種可用的狀態， 更多的，就請讀者參考手冊檔&lt;span lang=&quot;EN-US&quot;&gt;(man)&lt;/span&gt;吧&lt;span lang=&quot;EN-US&quot;&gt;...&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #666666; font-family: &amp;quot;微軟正黑體&amp;quot;,sans-serif; font-size: 10.5pt; mso-bidi-font-family: 新細明體; mso-fareast-language: ZH-CN; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/8691601430449311143/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/8691601430449311143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/8691601430449311143'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/blog-post.html' title='命令替換 - (())與()還有${}差在哪？'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-4189951112741872309</id><published>2019-10-15T09:08:00.003+08:00</published><updated>2019-10-23T09:06:11.572+08:00</updated><title type='text'>延伸正規表示法 - 群組功能『 | 』管線意義為『或 or』</title><content type='html'>轉自&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://linux.vbird.org/linux_basic/0330regularex.php&quot;&gt;http://linux.vbird.org/linux_basic/0330regularex.php&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;div style=&quot;color: #252525; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;color: #252525; font-size: large;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;延伸正規表示法 - 群組功能『 | 』管線意義為『或 or』&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;color: #252525; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;color: #252525; font-size: 16px;&quot;&gt;事實上，一般讀者只要瞭解基礎型的正規表示法大概就已經相當足夠了，不過，某些時刻為了要簡化整個指令操作， 瞭解一下使用範圍更廣的延伸型正規表示法的表示式會更方便呢！舉個簡單的例子好了，在上節的&lt;a href=&quot;http://linux.vbird.org/linux_basic/0330regularex.php#blank_line&quot; style=&quot;color: blue; text-decoration-line: none;&quot;&gt;例題三的最後一個例子&lt;/a&gt;中，我們要去除空白行與行首為 # 的行列，使用的是&lt;/div&gt;&lt;/div&gt;&lt;blockquote class=&quot;fontwidth&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;grep -v&lt;span style=&quot;color: #252525;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;^$&#39;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #252525;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;regular_express.txt&lt;/b&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;|&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #252525;&quot;&gt; grep -v &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&#39;^#&#39;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div style=&quot;color: #252525; font-family: &amp;quot;Times New Roman&amp;quot;, 新細明體, serif; font-size: 16px;&quot;&gt;需要使用到管線命令來搜尋兩次！那麼如果使用延伸型的正規表示法，我們可以簡化為：&lt;/div&gt;&lt;blockquote class=&quot;fontwidth&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;egrep -v&lt;span style=&quot;color: #252525;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&#39;^$&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;|&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;^#&#39;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #252525;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;regular_express.txt&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div style=&quot;color: #252525; font-family: &amp;quot;Times New Roman&amp;quot;, 新細明體, serif; font-size: 16px;&quot;&gt;&lt;br /&gt;延伸型正規表示法可以透過&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;群組功能&lt;/b&gt;&lt;/span&gt;『&lt;b&gt; | &lt;/b&gt;』來進行一次搜尋！那個在&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;單引號&lt;/b&gt;&lt;/span&gt;內的&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;b&gt;管線&lt;/b&gt;意義為『或 or』&lt;/span&gt;啦！ 是否變的更簡單呢？此外，grep 預設僅支援基礎正規表示法，如果要使用延伸型正規表示法，你可以使用 grep -E ， 不過更建議直接使用 egrep ！直接區分指令比較好記憶！&lt;br /&gt;其實 egrep 與 grep -E 是類似命令別名的關係啦！&lt;/div&gt;&lt;div style=&quot;font-size: 16px;&quot;&gt;&lt;span style=&quot;color: #252525;&quot;&gt;熟悉了正規表示法之後，到這個延伸型的正規表示法，你應該也會想到，不就是多幾個重要的特殊符號嗎？ ^_^y 是的～所以，我們就直接來說明一下，延伸型正規表示法有哪幾個特殊符號？由於底下的範例還是有使用到 &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;regular_express.txt&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #252525;&quot;&gt; ，不巧的是剛剛我們可能將該檔案修改過了 @_@，所以，請重新下載該檔案來練習喔！&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;color: #252525;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class=&quot;news&quot; style=&quot;background-color: lightyellow; border-collapse: collapse; border-image: initial; border-style: solid; border-width: 1px; box-shadow: gray 2px 2px 2px 2px; color: #252525; font-family: &amp;quot;Courier New&amp;quot;, 細明體; font-size: 16px; margin: 0px; padding: 0px; width: 738px;&quot;&gt;&lt;tbody&gt;&lt;tr class=&quot;theader&quot; style=&quot;background-color: lightblue; border-width: 0px; margin: 0px; padding: 0px; text-align: center;&quot;&gt;&lt;td style=&quot;border: 1px solid gray; margin: 5px; padding: 5px; width: 62px;&quot;&gt;RE 字符&lt;/td&gt;&lt;td style=&quot;border: 1px solid gray; margin: 5px; padding: 5px;&quot;&gt;意義與範例&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border-width: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td class=&quot;tcenter&quot; style=&quot;border: 1px solid gray; margin: 5px; padding: 5px; text-align: center;&quot;&gt;+&lt;/td&gt;&lt;td style=&quot;border: 1px solid gray; margin: 5px; padding: 5px;&quot;&gt;&lt;span style=&quot;text-decoration-line: underline;&quot;&gt;意義：重複『一個或一個以上』的前一個 RE 字符&lt;/span&gt;&lt;br /&gt;範例：搜尋 (god) (good) (goood)... 等等的字串。 那個 o+ 代表『一個以上的 o 』所以，底下的執行成果會將第 1, 9, 13 行列出來。&lt;br /&gt;&lt;blockquote style=&quot;color: #000088; font-weight: bolder; margin: 0px; padding: 0px 0px 0px 25px;&quot;&gt;egrep -n &#39;go+d&#39; regular_express.txt&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border-width: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td class=&quot;tcenter&quot; style=&quot;border: 1px solid gray; margin: 5px; padding: 5px; text-align: center;&quot;&gt;?&lt;/td&gt;&lt;td style=&quot;border: 1px solid gray; margin: 5px; padding: 5px;&quot;&gt;&lt;span style=&quot;text-decoration-line: underline;&quot;&gt;意義：『零個或一個』的前一個 RE 字符&lt;/span&gt;&lt;br /&gt;範例：搜尋 (gd) (god) 這兩個字串。 那個 o? 代表『空的或 1 個 o 』所以，上面的執行成果會將第 13, 14 行列出來。 有沒有發現到，這兩個案例( &#39;go+d&#39; 與 &#39;go?d&#39; )的結果集合與 &#39;go*d&#39; 相同？ 想想看，這是為什麼喔！ ^_^&lt;br /&gt;&lt;blockquote style=&quot;color: #000088; font-weight: bolder; margin: 0px; padding: 0px 0px 0px 25px;&quot;&gt;egrep -n &#39;go?d&#39; regular_express.txt&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border-width: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td class=&quot;tcenter&quot; style=&quot;border: 1px solid gray; margin: 5px; padding: 5px; text-align: center;&quot;&gt;|&lt;/td&gt;&lt;td style=&quot;border: 1px solid gray; margin: 5px; padding: 5px;&quot;&gt;&lt;span style=&quot;text-decoration-line: underline;&quot;&gt;意義：用或( or )的方式找出數個字串&lt;/span&gt;&lt;br /&gt;範例：搜尋 gd 或 good 這兩個字串，注意，是『或』！ 所以，第 1,9,14 這三行都可以被列印出來喔！那如果還想要找出 dog 呢？&lt;br /&gt;&lt;blockquote style=&quot;color: #000088; font-weight: bolder; margin: 0px; padding: 0px 0px 0px 25px;&quot;&gt;egrep -n &#39;gd|good&#39; regular_express.txt&lt;br /&gt;egrep -n &#39;gd|good|dog&#39; regular_express.txt&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border-width: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td class=&quot;tcenter&quot; style=&quot;border: 1px solid gray; margin: 5px; padding: 5px; text-align: center;&quot;&gt;()&lt;/td&gt;&lt;td style=&quot;border: 1px solid gray; margin: 5px; padding: 5px;&quot;&gt;&lt;span style=&quot;text-decoration-line: underline;&quot;&gt;意義：找出『群組』字串&lt;/span&gt;&lt;br /&gt;範例：搜尋 (glad) 或 (good) 這兩個字串，因為 g 與 d 是重複的，所以， 我就可以將 la 與 oo 列於 ( ) 當中，並以 | 來分隔開來，就可以啦！&lt;br /&gt;&lt;blockquote style=&quot;color: #000088; font-weight: bolder; margin: 0px; padding: 0px 0px 0px 25px;&quot;&gt;egrep -n &#39;g(la|oo)d&#39; regular_express.txt&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;border-width: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;td class=&quot;tcenter&quot; style=&quot;border: 1px solid gray; margin: 5px; padding: 5px; text-align: center;&quot;&gt;()+&lt;/td&gt;&lt;td style=&quot;border: 1px solid gray; margin: 5px; padding: 5px;&quot;&gt;&lt;span style=&quot;text-decoration-line: underline;&quot;&gt;意義：多個重複群組的判別&lt;/span&gt;&lt;br /&gt;範例：將『AxyzxyzxyzxyzC』用 echo 叫出，然後再使用如下的方法搜尋一下！&lt;br /&gt;&lt;blockquote style=&quot;color: #000088; font-weight: bolder; margin: 0px; padding: 0px 0px 0px 25px;&quot;&gt;echo &#39;AxyzxyzxyzxyzC&#39; | egrep &#39;A(xyz)+C&#39;&lt;/blockquote&gt;上面的例子意思是說，我要找開頭是 A 結尾是 C ，中間有一個以上的 &quot;xyz&quot; 字串的意思～&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;color: #252525; font-family: &amp;quot;Times New Roman&amp;quot;, 新細明體, serif; font-size: 16px;&quot;&gt;&lt;br /&gt;以上這些就是延伸型的正規表示法的特殊字元。另外，要特別強調的是，那個 ! 在正規表示法當中並不是特殊字元， 所以，如果你想要查出來檔案中含有 ! 與 &amp;gt; 的字行時，可以這樣：&lt;/div&gt;&lt;blockquote class=&quot;fontwidth&quot; style=&quot;color: #252525; font-family: 細明體; font-size: 16px;&quot;&gt;grep -n &#39;[!&amp;gt;]&#39; regular_express.txt&lt;/blockquote&gt;&lt;div style=&quot;color: #252525; font-family: &amp;quot;Times New Roman&amp;quot;, 新細明體, serif; font-size: 16px;&quot;&gt;這樣可以瞭解了嗎？常常看到有陷阱的題目寫：『反向選擇這樣對否？ &#39;[!a-z]&#39;？』， 呵呵！是錯的呦～要 &#39;[^a-z] 才是對的！至於更多關於正規表示法的進階文章，請參考文末的參考資料(&lt;a href=&quot;http://linux.vbird.org/linux_basic/0330regularex.php#ps2&quot; style=&quot;color: blue; text-decoration-line: none;&quot;&gt;註2&lt;/a&gt;)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/4189951112741872309/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2019/10/or.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/4189951112741872309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/4189951112741872309'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2019/10/or.html' title='延伸正規表示法 - 群組功能『 | 』管線意義為『或 or』'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-9031487205117802864</id><published>2013-01-18T18:51:00.003+08:00</published><updated>2013-01-18T18:57:52.671+08:00</updated><title type='text'>which</title><content type='html'>&lt;a href=&quot;http://www.flickr.com/photos/40541457@N02/8391055639/&quot; title=&quot;Flickr 上 jaushyan 的 2013-1-18 下午 06-22-16&quot;&gt;&lt;img alt=&quot;2013-1-18 下午 06-22-16&quot; height=&quot;463&quot; src=&quot;http://farm9.staticflickr.com/8326/8391055639_cdc12e9506.jpg&quot; width=&quot;489&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.nciku.com.tw/search/en/detail/which/84532&quot;&gt;http://www.nciku.com.tw/search/en/detail/which/84532&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/9031487205117802864/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2013/01/flickr-jaushyan-2013-1-18-06-22-16.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/9031487205117802864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/9031487205117802864'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2013/01/flickr-jaushyan-2013-1-18-06-22-16.html' title='which'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-3497554970632141489</id><published>2012-05-30T18:42:00.003+08:00</published><updated>2012-05-30T19:11:30.600+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CCNA 認證"/><title type='text'>(A002).What is the difference between a CSU/DSU and a modem?</title><content type='html'>&lt;div&gt;(A002).What is the difference between a CSU/DSU and a modem?&lt;/div&gt;&lt;div&gt;A. &lt;span style=&quot;background-color: orange;&quot;&gt;A CSU/DSU&lt;/span&gt; converts &lt;span style=&quot;background-color: yellow;&quot;&gt;analog signals&lt;/span&gt; from a router to a &lt;span style=&quot;background-color: cyan;&quot;&gt;leased line&lt;/span&gt;;&lt;span style=&quot;background-color: orange;&quot;&gt; a modem&lt;/span&gt; converts &lt;span style=&quot;background-color: yellow;&quot;&gt;analog signals&lt;/span&gt;&lt;/div&gt;&lt;div&gt;from a router to a &lt;span style=&quot;background-color: cyan;&quot;&gt;leased line&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;B. &lt;span style=&quot;background-color: orange;&quot;&gt;A CSU/DSU&lt;/span&gt; converts &lt;span style=&quot;background-color: yellow;&quot;&gt;analog signals&lt;/span&gt; from a router to a &lt;span style=&quot;background-color: cyan;&quot;&gt;phone line&lt;/span&gt;; &lt;span style=&quot;background-color: orange;&quot;&gt;a modem&lt;/span&gt; converts &lt;span style=&quot;background-color: yellow;&quot;&gt;digital signals&lt;/span&gt;&lt;/div&gt;&lt;div&gt;from a router to a &lt;span style=&quot;background-color: cyan;&quot;&gt;leased line&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;C. &lt;span style=&quot;background-color: orange;&quot;&gt;A CSU/DSU&lt;/span&gt; converts &lt;span style=&quot;background-color: yellow;&quot;&gt;digital signals&lt;/span&gt; from a router to a &lt;span style=&quot;background-color: cyan;&quot;&gt;phone line&lt;/span&gt;; &lt;span style=&quot;background-color: orange;&quot;&gt;a modem&lt;/span&gt; converts &lt;span style=&quot;background-color: yellow;&quot;&gt;analog signals&lt;/span&gt;&lt;/div&gt;&lt;div&gt;from a router to a &lt;span style=&quot;background-color: cyan;&quot;&gt;phone line&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;D. &lt;span style=&quot;background-color: orange;&quot;&gt;A CSU/DSU&lt;/span&gt; converts &lt;span style=&quot;background-color: yellow;&quot;&gt;digital signals&lt;/span&gt; from a router to a &lt;span style=&quot;background-color: cyan;&quot;&gt;leased line&lt;/span&gt;; &lt;span style=&quot;background-color: orange;&quot;&gt;a modem&lt;/span&gt; converts &lt;span style=&quot;background-color: yellow;&quot;&gt;digital signals&lt;/span&gt;&lt;/div&gt;&lt;div&gt;from a router to a &lt;span style=&quot;background-color: cyan;&quot;&gt;phone line&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Answer: D&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;(A002).What是一個CSU / DSU和調製解調器之間的區別嗎？&lt;/div&gt;&lt;div&gt;A. CSU/DSU的轉換成模擬信號，以租用線路的路由器，數據機 轉換成模擬信號&lt;/div&gt;&lt;div&gt;從租用線路的路由器。&lt;/div&gt;&lt;div&gt;B. CSU/DSU的轉換成模擬信號，一個電話線路由器，數據機&amp;nbsp;轉換成數字信號&lt;/div&gt;&lt;div&gt;從租用線路的路由器。&lt;/div&gt;&lt;div&gt;C. CSU/DSU的轉換成數字信號，一個電話線路由器，數據機&amp;nbsp;轉換成模擬信號&lt;/div&gt;&lt;div&gt;從路由器到電話線。&lt;/div&gt;&lt;div&gt;D. CSU/DSU的轉換成數字信號，以租用線路的路由器，數據機&amp;nbsp;轉換成數字信號&lt;/div&gt;&lt;div&gt;從路由器到電話線。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;答案：D&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/3497554970632141489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/3497554970632141489'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2012/05/what-is-difference-between-csudsu-and.html' title='(A002).What is the difference between a CSU/DSU and a modem?'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-1122706435522008987</id><published>2012-05-30T18:23:00.000+08:00</published><updated>2012-05-30T18:32:38.018+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CCNA 認證"/><title type='text'>Local Management Interface (LMI)</title><content type='html'>&lt;h2 style=&quot;background-color: white; background-image: none; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; margin: 0px 0px 0.6em; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em;&quot;&gt;  &lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 19px; font-weight: normal; line-height: 19px;&quot;&gt;Local Management Interface （LMI）&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;Local Management Interface (LMI)&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;Main article: Local Management Interface&quot;&gt;主要文章：本地管理接口&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot;&gt;國際電話和電報（CCITT）諮詢委員會&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;Initial proposals for Frame Relay were presented to the Consultative Committee on International Telephone and Telegraph (CCITT) in 1984.&quot;&gt;在1984年&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot;&gt;提出了&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot;&gt;幀中繼的初步建議&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;Initial proposals for Frame Relay were presented to the Consultative Committee on International Telephone and Telegraph (CCITT) in 1984.&quot;&gt;。&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;Lack of interoperability and standardization, prevented any significant Frame Relay deployment until 1990 when Cisco, Digital Equipment Corporation (DEC), Northern Telecom, and StrataCom formed a consortium to focus on its development.&quot;&gt;缺乏互操作性和標準化，阻止任何重大的幀中繼部署，直到1990年，當思科公司，數字設備公司（DEC），北方電訊，StrataCom組成的聯合體，把重點放在其發展。&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;They produced a protocol that provided additional capabilities for complex inter-networking environments.&quot;&gt;他們製作了一個協議，提供額外的功能，複雜的跨網絡環境。&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;These Frame Relay extensions are referred to as the Local Management Interface (LMI).&quot;&gt;這些被稱為幀中繼擴展為本地管理接口（LMI）。&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;These Frame Relay extensions are referred to as the Local Management Interface (LMI).&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;Datalink connection identifiers (DLCIs) are numbers that refer to paths through the Frame Relay network.&quot;&gt;數據鏈路連接標識符（的DLCI）是指通過幀中繼網絡路徑的數字。&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;They are only locally significant, which means that when device-A sends data to device-B it will most-likely use a different DLCI than device-B would use to reply.&quot;&gt;他們只能在本地顯著，這意味著，當設備A發送到設備-B的數據，將最有可能使用比設備-B會使用不同的DLCI答辯。&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;Multiple virtual circuits can be active on the same physical end-points (performed by using subinterfaces).&quot;&gt;多個虛擬電路可以是積極的，在相同的物理端點（通過使用子接口執行）。&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;Multiple virtual circuits can be active on the same physical end-points (performed by using subinterfaces).&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;The LMI global addressing extension gives Frame Relay data-link connection identifier (DLCI) values global rather than local significance.&quot;&gt;LMI的全球尋址擴展提供幀中繼數據鏈路連接標識符（DLCI）全球重視，而不是局部意義。&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;DLCI values become DTE addresses that are unique in the Frame Relay WAN.&quot;&gt;DLCI值成為在幀中繼廣域網獨特的DTE地址。&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;The global addressing extension adds functionality and manageability to Frame Relay internetworks.&quot;&gt;全球尋址擴展添加功能和幀中繼互聯網絡的可管理性。&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;Individual network interfaces and the end nodes attached to them, for example, can be identified by using standard address-resolution and discovery techniques.&quot;&gt;單獨的網絡接口和終端連接到他們的節點，例如，可以通過使用標準的地址解析和發現技術鑑定。&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;In addition, the entire Frame Relay network appears to be a typical LAN to routers on its periphery.&quot;&gt;此外，整個幀中繼網絡出現路由器在它的外圍是一個典型的局域網。&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;In addition, the entire Frame Relay network appears to be a typical LAN to routers on its periphery.&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;LMI virtual circuit status messages provide communication and synchronization between Frame Relay DTE and DCE devices.&quot;&gt;LMI虛電路狀態消息提供幀中繼DTE和DCE設備之間的通信和同步。&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;These messages are used to periodically report on the status of PVCs, which prevents data from being sent into black holes (that is, over PVCs that no longer exist).&quot;&gt;這些消息用於PVC的狀態，從而防止數據被發送到黑洞（即不再存在以上的PVC）定期報告。&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;These messages are used to periodically report on the status of PVCs, which prevents data from being sent into black holes (that is, over PVCs that no longer exist).&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;The LMI multicasting extension allows multicast groups to be assigned.&quot;&gt;LMI的多播擴展允許組播組分配。&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;Multicasting saves bandwidth by allowing routing updates and address-resolution messages to be sent only to specific groups of routers.&quot;&gt;組播節省帶寬，允許只發送給特定群體的路由器的路由更新和地址解析消息。&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;The extension also transmits reports on the status of multicast groups in update messages.&quot;&gt;該擴展還發送狀態更新消息的組播組的報告。&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: arial, sans-serif; font-size: 16px;&quot; title=&quot;The extension also transmits reports on the status of multicast groups in update messages.&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can set one of three types of LMIs on Cisco devices: &lt;span style=&quot;background-color: #ffd966;&quot;&gt;ANSI T1.617 Annex D&lt;/span&gt;, &lt;span style=&quot;background-color: #f1c232;&quot;&gt;Cisco&lt;/span&gt;, and &lt;span style=&quot;background-color: #f1c232;&quot;&gt;ITU-T Q.933 Annex A&lt;/span&gt;.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To do so, use the following commands beginning in interface configuration mode:&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;h3&gt; &lt;span style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;frame-relay lmi-type {ansi | cisco | q933a}&lt;/span&gt;&lt;/h3&gt;</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/1122706435522008987/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2012/05/local-management-interface-lmi.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/1122706435522008987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/1122706435522008987'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2012/05/local-management-interface-lmi.html' title='Local Management Interface (LMI)'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-4291646829412889572</id><published>2012-05-30T17:48:00.001+08:00</published><updated>2012-05-30T22:23:44.264+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CCNA 認證"/><title type='text'>(A001) Which WAN protocol is being used?</title><content type='html'>&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;(A001).Refer to the exhibit.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: arial, sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;根據下圖&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://farm9.staticflickr.com/8014/7300761740_95c606460e_c.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://farm9.staticflickr.com/8014/7300761740_95c606460e_c.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Which WAN protocol is being used?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;A. ATM&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;B. HDLC&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;C. Frame Relay&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;D. PPP&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Answer: C&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/4291646829412889572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/4291646829412889572'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2012/05/a001.html' title='(A001) Which WAN protocol is being used?'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8446814529424279240.post-8702873985380181221</id><published>2010-01-30T07:29:00.000+08:00</published><updated>2010-01-30T15:45:01.620+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="園藝"/><title type='text'>葫蘆由種子開始一週成長日記</title><content type='html'>【附記】：此篇撰寫於 2008年6月27日原Blog&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: rgb(255, 255, 153);&quot;&gt;一、栽植前的採購：&lt;/span&gt;(2008年6月14日)&lt;br /&gt; &lt;a target=&quot;_blank&quot; href=&quot;http://farm5.static.flickr.com/4019/4314938796_7475a463de_o.jpg&quot;&gt;&lt;img src=&quot;http://farm5.static.flickr.com/4019/4314938796_7475a463de_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;泥炭土&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://farm3.static.flickr.com/2759/4315139922_a7c58a0653_o.jpg&quot;&gt;&lt;img src=&quot;http://farm3.static.flickr.com/2759/4315139922_a7c58a0653_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;小花盆&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://farm5.static.flickr.com/4059/4314938864_18c48933a8_o.jpg&quot;&gt;&lt;img src=&quot;http://farm5.static.flickr.com/4059/4314938864_18c48933a8_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;葫蘆種子包&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: rgb(255, 255, 153);&quot;&gt;二、栽植前的準備：&lt;/span&gt;(2008年6月16日)&lt;br /&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://farm3.static.flickr.com/2761/4314202975_51f7b3ebd4_o.jpg&quot;&gt;&lt;img src=&quot;http://farm3.static.flickr.com/2761/4314202975_51f7b3ebd4_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;將泥炭土放入小花盆&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://farm5.static.flickr.com/4068/4314409729_5be81f23eb_o.jpg&quot;&gt;&lt;img src=&quot;http://farm5.static.flickr.com/4068/4314409729_5be81f23eb_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;取出葫蘆種子&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://farm5.static.flickr.com/4032/4314449573_ca91bc7a79_o.jpg&quot;&gt;&lt;img src=&quot;http://farm5.static.flickr.com/4032/4314449573_ca91bc7a79_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;將葫蘆種子放水中浸泡一夜(先使用六顆種子)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: rgb(255, 255, 153);&quot;&gt;三、開始栽植：&lt;/span&gt;(2008年6月17日)&lt;br /&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://farm3.static.flickr.com/2757/4315193496_e5a805e22a_o.jpg&quot;&gt;&lt;img src=&quot;http://farm3.static.flickr.com/2757/4315193496_e5a805e22a_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;將浸泡一夜的六顆葫蘆種子放入小花盆並覆土約一公分深&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: rgb(255, 255, 153);&quot;&gt;四、等待發芽：&lt;/span&gt;一星期後(2008年6月23日)~&lt;br /&gt;&lt;a href=&quot;http://farm5.static.flickr.com/4013/4315193536_3f27e4c0e6_o.jpg&quot;&gt;&lt;img src=&quot;http://farm5.static.flickr.com/4013/4315193536_3f27e4c0e6_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;終於等到發芽，並冒出葉子：(2008年6月23日早)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://farm5.static.flickr.com/4068/4314939192_3e75e8b9a1_o.jpg&quot;&gt;&lt;img src=&quot;http://farm5.static.flickr.com/4068/4314939192_3e75e8b9a1_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;到了傍晚，葉子長得更大：(2008年6月23日晚)&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: rgb(255, 153, 0);&quot;&gt;後記：&lt;/span&gt;此篇為本Blog開站首發，值得慶祝!!!!&lt;br /&gt;&lt;br /&gt;附上葫蘆生長第二週的照片(2008年6月30日)。&lt;br /&gt;&lt;br /&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://farm5.static.flickr.com/4005/4314471997_f5b26b60fe_o.jpg&quot;&gt;&lt;img src=&quot;http://farm5.static.flickr.com/4005/4314471997_f5b26b60fe_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;向陽面看出葉子很茂密，&lt;span style=&quot;background-color: rgb(255, 255, 153);&quot;&gt;但也發現到新長出的第三、四片葉子與最原始由種子裡的長出的那二片葉子有極大的不一樣&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://farm5.static.flickr.com/4027/4314472035_c55054af51_o.jpg&quot;&gt;&lt;img src=&quot;http://farm5.static.flickr.com/4027/4314472035_c55054af51_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;background-color: rgb(255, 255, 153);&quot;&gt;編號1,2&lt;/span&gt;  為從種子裡的長出的第一、二片葉子， &lt;span style=&quot;background-color: rgb(255, 255, 153);&quot;&gt;編號3,4&lt;/span&gt; 為新長出的第三、四片葉子，由此張照片可以更清楚地看出葉子1,2與3,4不同的地方，&lt;span style=&quot;background-color: rgb(255, 255, 153);&quot;&gt;編號2 黃色框框&lt;/span&gt; 為種子殼內的薄膜，還粘在葉子上，代表早期葉子與種子的關係&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://farm5.static.flickr.com/4018/4315207822_73854ace1e_o.jpg&quot;&gt;&lt;img src=&quot;http://farm5.static.flickr.com/4018/4315207822_73854ace1e_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;這是側面，沒錯是四顆，後來又冒出二顆來了&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://farm3.static.flickr.com/2768/4314939346_ed064ff391_o.jpg&quot;&gt;&lt;img src=&quot;http://farm3.static.flickr.com/2768/4314939346_ed064ff391_o.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;這是背面(向陽背面)，可以更清楚看到四顆，撒了六顆種子，長出四顆耶!!!</content><link rel='replies' type='application/atom+xml' href='http://gerryhome.blogspot.com/feeds/8702873985380181221/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gerryhome.blogspot.com/2010/01/blog-post_29.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/8702873985380181221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8446814529424279240/posts/default/8702873985380181221'/><link rel='alternate' type='text/html' href='http://gerryhome.blogspot.com/2010/01/blog-post_29.html' title='葫蘆由種子開始一週成長日記'/><author><name>Abraham</name><uri>http://www.blogger.com/profile/09916122387186324141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>