锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美搞黄网站,亚洲欧美国产日韩中文字幕,午夜欧美大尺度福利影院在线看 http://m.shnenglu.com/kenwell/category/14098.html鑷繁瀛︿範鎵鐢?/description>zh-cnWed, 04 Aug 2010 12:12:21 GMTWed, 04 Aug 2010 12:12:21 GMT60shell 鍙橀噺闂存帴寮曠敤http://m.shnenglu.com/kenwell/archive/2010/08/02/121977.htmlc++ 瀛︿範c++ 瀛︿範Mon, 02 Aug 2010 08:46:00 GMThttp://m.shnenglu.com/kenwell/archive/2010/08/02/121977.htmlhttp://m.shnenglu.com/kenwell/comments/121977.htmlhttp://m.shnenglu.com/kenwell/archive/2010/08/02/121977.html#Feedback0http://m.shnenglu.com/kenwell/comments/commentRss/121977.htmlhttp://m.shnenglu.com/kenwell/services/trackbacks/121977.html榪欑浣跨敤闂存帴寮曠敤鐨勬柟娉曟槸涓涓皬鎶宸? 濡傛灉絎簩涓彉閲忔洿鏀逛簡瀹冪殑鍊? 閭d箞絎竴涓彉閲?/div>
蹇呴』琚傚綋鐨勮В闄ゅ紩鐢?灝卞儚涓婅竟鐨勪緥瀛愪竴鏍?. 騫歌繍鐨勬槸, 鍦˙ash鐗堟湰2涓紩鍏?/div>
鐨?{!variable}褰㈠紡浣垮緱浣跨敤闂存帴寮曠敤鏇村姞鐩磋浜?
鍋囪涓涓彉閲忕殑鍊兼槸絎簩涓彉閲忕殑鍚嶅瓧. 閭d箞鎴戜滑濡備綍浠庣涓涓彉閲忎腑鍙栧緱絎簩涓彉閲忕殑鍊煎憿? 姣斿,
濡傛灉a=letter_of_alphabet騫朵笖letter_of_alphabet=z, 閭d箞鎴戜滑鑳藉閫氳繃寮曠敤鍙橀噺a鏉ヨ幏寰梲涔? 榪欑‘
瀹炴槸鍙互鍋氬埌鐨? 瀹冭縐頒負闂存帴寮曠敤. 瀹冧嬌鐢╡val var1=\$$var2榪欑涓嶅鉤甯哥殑褰㈠紡.


]]>Linux Shell Bash 姝e垯琛ㄨ揪寮忎粙緇?/title><link>http://m.shnenglu.com/kenwell/archive/2010/06/30/119014.html</link><dc:creator>c++ 瀛︿範</dc:creator><author>c++ 瀛︿範</author><pubDate>Wed, 30 Jun 2010 14:15:00 GMT</pubDate><guid>http://m.shnenglu.com/kenwell/archive/2010/06/30/119014.html</guid><wfw:comment>http://m.shnenglu.com/kenwell/comments/119014.html</wfw:comment><comments>http://m.shnenglu.com/kenwell/archive/2010/06/30/119014.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/kenwell/comments/commentRss/119014.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/kenwell/services/trackbacks/119014.html</trackback:ping><description><![CDATA[<p>姝e垯琛ㄨ揪寮忓氨鏄敱涓緋誨垪鐗規畩瀛楃緇勬垚鐨勫瓧絎︿覆, 鍏朵腑姣忎釜鐗規畩瀛楃閮借縐頒負<em>鍏冨瓧絎?/em>, 榪欎簺<em>鍏冨瓧絎?/em>騫朵笉琛ㄧず涓哄畠浠瓧闈笂鐨勫惈涔? 鑰屼細琚В閲婁負涓浜涚壒瀹氱殑鍚箟. 鍏蜂釜渚嬪瓙, 姣斿寮曠敤絎﹀彿, 鍙兘灝辨槸琛ㄧず鏌愪漢鐨勬紨璁插唴瀹? <em>鍚屼笂</em>, 涔熷彲鑳借〃紺轟負鎴戜滑涓嬮潰灝嗚璁插埌鐨勭鍙風殑鍏?鍚箟. 姝e垯琛ㄨ揪寮忓叾瀹炴槸鐢辨櫘閫氬瓧絎﹀拰鍏冨瓧絎﹀叡鍚岀粍鎴愮殑闆嗗悎, 榪欎釜闆嗗悎鐢ㄦ潵鍖歸厤(鎴栨寚瀹?妯″紡. </p> <p>涓涓鍒欒〃杈懼紡浼氬寘鍚笅鍒椾竴欏規垨澶氶」:</p><ul> <li> <p><em class="FIRSTTERM">涓涓瓧絎﹂泦</em>. 榪欓噷鎵鎸囩殑瀛楃闆嗗彧鍖呭惈鏅氬瓧絎? 榪欎簺瀛楃鍙〃紺哄畠浠殑瀛楅潰鍚箟. 姝e垯琛ㄨ揪寮忕殑鏈綆鍗曞艦寮忓氨鏄?em>鍙?/em>鍖呭惈瀛楃闆? 鑰屼笉鍖呭惈鍏冨瓧絎? </p></li> <li> <p><em class="FIRSTTERM">閿?/em>. <em>閿?/em>鎸囧畾浜嗘鍒欒〃杈懼紡鎵瑕佸尮閰嶇殑鏂囨湰鍦ㄦ枃鏈涓墍澶勭殑浣嶇疆. 姣斿, <span id="hvzpftn" class="TOKEN">^</span>, 鍜?span class="TOKEN">$</span>灝辨槸閿? </p></li> <li> <p><em class="FIRSTTERM">淇グ絎?/em>. 瀹冧滑鎵╁ぇ鎴栫緝灝?<em>淇敼</em>)浜嗘鍒欒〃杈懼紡鍖歸厤鏂囨湰鐨勮寖鍥? 淇グ絎﹀寘鍚槦鍙? 鎷彿, 鍜屽弽鏂滄潬. </p></li></ul> <p>姝e垯琛ㄨ揪寮忔渶涓昏鐨勭洰鐨勫氨鏄敤浜?<em class="FIRSTTERM">RE</em>)鏂囨湰鎼滅儲涓庡瓧絎︿覆鎿嶄綔. (璇戣呮敞: 浠ヤ笅姝e垯琛ㄨ揪寮忎篃浼氳綆縐頒負<em>RE</em>.) RE鑳藉<em class="FIRSTTERM">鍖歸厤</em>鍗曚釜瀛楃鎴栬呬竴涓瓧絎﹂泦 -- 鍗? 涓涓瓧絎︿覆, 鎴栬呬竴涓瓧絎︿覆鐨勪竴閮ㄥ垎. </p> <ul> <li> <p>鏄熷彿 -- <span id="hvzpftn" class="TOKEN">*</span> -- 鐢ㄦ潵鍖歸厤瀹冨墠闈㈠瓧絎︾殑浠繪剰澶氭, <em>鍖呮嫭0嬈?/em>. </p> <p><span id="hvzpftn" class="QUOTE">"1133*"</span>鍖歸厤<tt class="REPLACEABLE"><em>11 + 涓涓垨澶氫釜3 + 涔熷厑璁稿悗杈硅繕鏈夊叾浠栧瓧絎?/em></tt>: <tt class="REPLACEABLE"><em>113</em></tt>, <tt class="REPLACEABLE"><em>1133</em></tt>, <tt class="REPLACEABLE"><em>111312</em></tt>, 絳夌瓑.</p></li> <li> <p><a name="REGEXDOT"></a>鐐?-- <span id="hvzpftn" class="TOKEN">.</span> -- 鐢ㄤ簬鍖歸厤浠繪剰涓涓瓧絎? 闄や簡鎹㈣絎? <a name="AEN13724"><span id="hvzpftn" class="footnote">[1]</span></a> </p> <p><span id="hvzpftn" class="QUOTE">"13."</span> 鍖歸厤<tt class="REPLACEABLE"><em>13 + 鑷沖皯涓涓換鎰忓瓧絎?鍖呮嫭絀烘牸)</em></tt>: <tt class="REPLACEABLE"><em>1133</em></tt>, <tt class="REPLACEABLE"><em>11333</em></tt>, 浣嗕笉鑳藉尮閰?tt class="REPLACEABLE"><em>13</em></tt> (鍥犱負緙哄皯"."鎵鑳藉尮閰嶇殑鑷沖皯涓涓換鎰忓瓧絎?. </p></li> <li> <p>鑴卞瓧絎﹀彿 -- <span id="hvzpftn" class="TOKEN">^</span> -- 鍖歸厤琛岄, 浣嗘槸鏌愪簺鏃跺欓渶瑕佷緷璧栦笂涓嬫枃鐜, 鍦≧E涓? 鏈夋椂鍊欎篃琛ㄧず瀵逛竴涓瓧絎﹂泦鍙栧弽. </p></li> <li> <p><a name="DOLLARSIGNREF"></a></p> <p>緹庡厓絎?-- <span id="hvzpftn" class="TOKEN">$</span> -- 鍦≧E涓敤鏉ュ尮閰嶈灝? </p> <p><span id="hvzpftn" class="QUOTE">"XXX$"</span> 鍖歸厤琛屽熬鐨?em>XXX</em>. </p> <p><span id="hvzpftn" class="QUOTE">"^$"</span> 鍖歸厤絀鴻. </p></li> <li> <p><a name="BRACKETSREF"></a></p> <p>涓嫭鍙?-- <span id="hvzpftn" class="TOKEN">[...]</span> -- 鍦≧E涓? 灝嗗尮閰嶄腑鎷彿瀛楃闆嗕腑鐨勬煇涓涓瓧絎? </p> <p><span id="hvzpftn" class="QUOTE">"[xyz]"</span> 灝嗕細鍖歸厤瀛楃<tt class="REPLACEABLE"><em>x</em></tt>, <tt class="REPLACEABLE"><em>y</em></tt>, 鎴?tt class="REPLACEABLE"><em>z</em></tt>. </p> <p><span id="hvzpftn" class="QUOTE">"[c-n]"</span> 鍖歸厤瀛楃<tt class="REPLACEABLE"><em>c</em></tt>鍒板瓧絎?tt class="REPLACEABLE"><em>n</em></tt>涔嬮棿鐨勪換鎰忎竴涓瓧絎? </p> <p><span id="hvzpftn" class="QUOTE">"[B-Pk-y]"</span> 鍖歸厤浠?tt class="REPLACEABLE"><em>B</em></tt>鍒?tt class="REPLACEABLE"><em>P</em></tt>, 鎴栬呬粠<tt class="REPLACEABLE"><em>k</em></tt>鍒?tt class="REPLACEABLE"><em>y</em></tt>涔嬮棿鐨勪換鎰忎竴涓瓧絎? </p> <p><span id="hvzpftn" class="QUOTE">"[a-z0-9]"</span> 鍖歸厤浠繪剰灝忓啓瀛楁瘝鎴栨暟瀛? </p> <p><span id="hvzpftn" class="QUOTE">"[^b-d]"</span> 灝嗕細鍖歸厤鑼冨洿鍦?tt class="REPLACEABLE"><em>b</em></tt>鍒?tt class="REPLACEABLE"><em>d</em></tt><em>涔嬪鐨?/em>浠繪剰涓涓瓧絎? 榪欏氨鏄嬌鐢?span class="TOKEN">^</span>瀵瑰瓧絎﹂泦鍙栧弽鐨勪竴涓疄渚? (灝卞ソ鍍忓湪鏌愪簺鎯呭喌涓? <span id="hvzpftn" class="TOKEN">!</span>鎵琛ㄨ揪鐨勫惈涔?. </p> <p>灝嗗涓腑鎷彿瀛楃闆嗙粍鍚堜嬌鐢? 鑳藉鍖歸厤涓鑸殑鍗曡瘝鎴栨暟瀛? <span id="hvzpftn" class="QUOTE">"[Yy][Ee][Ss]"</span>鑳藉鍖歸厤<tt class="REPLACEABLE"><em>yes</em></tt>, <tt class="REPLACEABLE"><em>Yes</em></tt>, <tt class="REPLACEABLE"><em>YES</em></tt>, <tt class="REPLACEABLE"><em>yEs</em></tt>, 絳夌瓑. <span id="hvzpftn" class="QUOTE">"[0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]"</span> 鍙互鍖歸厤紺句繚鐮?Social Security number). </p></li> <li> <p>鍙嶆枩鏉?-- <span id="hvzpftn" class="TOKEN">\</span> -- 鐢ㄦ潵<a >杞箟</a>鏌愪釜鐗規畩鍚箟鐨勫瓧絎? 榪欐剰鍛崇潃, 榪欎釜鐗規畩瀛楃灝嗕細琚В閲婁負瀛楅潰鍚箟. </p> <p><span id="hvzpftn" class="QUOTE">"\$"</span>灝嗕細琚В閲婃垚瀛楃<span id="hvzpftn" class="QUOTE">"$"</span>, 鑰屼笉鏄疪E涓尮閰嶈灝劇殑鐗規畩瀛楃. 鐩鎬技鐨? <span id="hvzpftn" class="QUOTE">"\\"</span>灝嗕細琚В閲婁負瀛楃<span id="hvzpftn" class="QUOTE">"\"</span>. </p></li> <li> <p><a name="ANGLEBRAC"></a></p> <p><a >杞箟</a>鐨?span class="QUOTE">"灝栨嫭鍙?</span> -- <span id="hvzpftn" class="TOKEN">\<...\></span> -- 鐢ㄤ簬鍖歸厤鍗曡瘝杈圭晫. </p> <p>灝栨嫭鍙峰繀欏昏杞箟鎵嶅惈鏈夌壒孌婄殑鍚箟, 鍚﹀垯瀹冨氨琛ㄧず灝栨嫭鍙風殑瀛楅潰鍚箟. </p> <p><span id="hvzpftn" class="QUOTE">"\<the\>"</span> 瀹屾暣鍖歸厤鍗曡瘝<span id="hvzpftn" class="QUOTE">"the"</span>, 涓嶄細鍖歸厤<span id="hvzpftn" class="QUOTE">"them"</span>, <span id="hvzpftn" class="QUOTE">"there"</span>, <span id="hvzpftn" class="QUOTE">"other"</span>, 絳夌瓑. </p> <p> </p> <table style="width: 529px; height: 346px; " border="1" bgcolor="#e0e0e0"> <tbody> <tr> <td><font color="#000000"><pre class="SCREEN"><samp class="PROMPT">bash$ </samp><kbd class="USERINPUT">cat textfile</kbd><br><samp class="COMPUTEROUTPUT">This is line 1, of which there is only one instance.<br> This is the only instance of line 2.<br> This is line 3, another line.<br> This is line 4.</samp><br><br><br><samp class="PROMPT">bash$ </samp><kbd class="USERINPUT">grep 'the' textfile</kbd><br><samp class="COMPUTEROUTPUT">This is line 1, of which there is only one instance.<br> This is the only instance of line 2.<br> This is line 3, another line.</samp><br><br><br><samp class="PROMPT">bash$ </samp><kbd class="USERINPUT">grep '\<the\>' textfile</kbd><br><samp class="COMPUTEROUTPUT">This is the only instance of line 2.</samp><br> </pre></font></td></tr></tbody></table></li></ul> <table class="SIDEBAR" border="1" cellpadding="5"> <tbody> <tr> <td> <div id="hvzpftn" class="SIDEBAR"><a name="AEN13844"></a> <p>瑕佹兂紜畾涓涓猂E鑳藉惁姝e父宸ヤ綔, 鍞竴鐨勫姙娉曞氨鏄祴璇曞畠. </p> <table border="0" width="100%" bgcolor="#e0e0e0"> <tbody> <tr> <td><font color="#000000"><pre class="PROGRAMLISTING"> 1 TEST FILE: tstfile # 涓嶅尮閰?<br> 2  # 涓嶅尮閰?<br> 3 Run grep "1133*" on this file. # 鍖歸厤.<br> 4  # 涓嶅尮閰?<br> 5  # 涓嶅尮閰?<br> 6 This line contains the number 113. # 鍖歸厤.<br> 7 This line contains the number 13. # 涓嶅尮閰?<br> 8 This line contains the number 133. # 涓嶅尮閰?<br> 9 This line contains the number 1133. # 鍖歸厤.<br> 10 This line contains the number 113312. # 鍖歸厤.<br> 11 This line contains the number 1112. # 涓嶅尮閰?<br> 12 This line contains the number 113312312. # 鍖歸厤.<br> 13 This line contains no numbers at all. # 涓嶅尮閰? </pre></font></td></tr></tbody></table> <table border="1" width="100%" bgcolor="#e0e0e0"> <tbody> <tr> <td><font color="#000000"><pre class="SCREEN"><samp class="PROMPT">bash$ </samp><kbd class="USERINPUT">grep "1133*" tstfile</kbd><br><samp class="COMPUTEROUTPUT">Run grep "1133*" on this file. # 鍖歸厤.<br> This line contains the number 113. # 鍖歸厤.<br> This line contains the number 1133. # 鍖歸厤.<br> This line contains the number 113312. # 鍖歸厤.<br> This line contains the number 113312312. # 鍖歸厤. </samp><br> </pre></font></td></tr></tbody></table></div></td></tr></tbody></table> <ul> <li style="LIST-STYLE-TYPE: square"> <div id="hvzpftn" class="FORMALPARA"> <p><strong><a name="EXTREGEX"></a>鎵╁睍鐨勬鍒欒〃杈懼紡. </strong>娣誨姞浜嗕竴浜涢澶栫殑鍖歸厤瀛楃鍒板熀鏈泦鍚堜腑. 鐢ㄤ簬<a >egrep</a>, <a >awk</a>, 鍜?a >Perl</a>.</p></div></li> <li> <p><a name="QUEXREGEX"></a></p> <p>闂彿 -- <span id="hvzpftn" class="TOKEN">?</span> -- 鍖歸厤瀹冨墠闈㈢殑瀛楃, 浣嗘槸鍙兘鍖歸厤1嬈℃垨0嬈? 閫氬父鐢ㄦ潵鍖歸厤鍗曚釜瀛楃. </p></li> <li> <p><a name="PLUSREF"></a></p> <p>鍔犲彿 -- <span id="hvzpftn" class="TOKEN">+</span> -- 鍖歸厤瀹冨墠闈㈢殑瀛楃, 鑳藉鍖歸厤涓嬈℃垨澶氭. 涓庡墠闈㈣鐨?span class="TOKEN">*</span>鍙蜂綔鐢ㄧ被浼? 浣嗘槸<em>涓嶈兘</em>鍖歸厤0涓瓧絎︾殑鎯呭喌. </p> <table style="width: 558px; height: 209px; " border="0" bgcolor="#e0e0e0"> <tbody> <tr> <td><font color="#000000"><pre class="PROGRAMLISTING"> 1 # GNU鐗堟湰鐨剆ed鍜宎wk鑳藉浣跨敤"+",<br> 2 # 浣嗘槸瀹冮渶瑕佽杞箟涓涓? <br> 3 <br> 4 echo a111b | sed -ne '/a1\+b/p'<br> 5 echo a111b | grep 'a1\+b'<br> 6 echo a111b | gawk '/a1+b/'<br> 7 # 涓婅竟3鍙ョ殑浣滅敤鐩稿悓. <br> 8 <br> 9 # 鎰熻阿, S.C.</pre></font></td></tr></tbody></table></li> <li> <p><a >杞箟</a><span id="hvzpftn" class="QUOTE">"澶ф嫭鍙?</span> -- <span id="hvzpftn" class="TOKEN">\{ \}</span> -- 鍦ㄨ漿涔夊悗鐨勫ぇ鎷彿涓姞涓婁竴涓暟瀛? 榪欎釜鏁板瓧灝辨槸瀹冨墠闈㈢殑RE鎵鑳藉尮閰嶇殑嬈℃暟. </p> <p>澶ф嫭鍙峰繀欏葷粡榪囪漿涔? 鍚﹀垯, 澶ф嫭鍙蜂粎浠呰〃紺哄瓧闈㈠惈鎰? 榪欑鐢ㄦ硶騫朵笉鏄熀鏈琑E闆嗗悎涓殑涓閮ㄥ垎, 浠呬粎鏄釜鎶宸ц屼互. </p> <p><span id="hvzpftn" class="QUOTE">"[0-9]\{5\}"</span> 綺劇‘鍖歸厤5涓暟瀛?(鎵鍖歸厤鐨勫瓧絎﹁寖鍥存槸0鍒?). </p> <div id="hvzpftn" class="NOTE"> <table class="NOTE" border="0" width="90%"> <tbody> <tr> <td valign="top" width="25" align="middle"><img hspace="5" alt="Note" src="file:///D:/users/kenwell/Desktop/Linux%20Shell%20Bash%20%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E4%BB%8B%E7%BB%8D%20-%20Powered%20by%20PHPWind.net_files/2452689_1.gif"></td> <td valign="top" align="left"> <p>浣跨敤澶ф嫭鍙峰艦寮忕殑RE鏄笉鑳藉鍦?span class="QUOTE">"緇忓吀"</span>(闈濸OSIX鍏煎)鐨?a >awk</a>鐗堟湰涓甯歌繍琛岀殑. 鐒惰? <strong class="COMMAND">gawk</strong>鍛戒護涓湁涓涓?code class="OPTION">--re-interval</code>閫夐」, 浣跨敤榪欎釜閫夐」灝卞厑璁鎬嬌鐢ㄥぇ鎷彿褰㈠紡鐨凴E浜?鏃犻渶杞箟). </p> <p> </p> <table style="width: 505px; height: 99px; " border="1" bgcolor="#e0e0e0"> <tbody> <tr> <td><font color="#000000"><pre class="SCREEN"><samp class="PROMPT">bash$ </samp><kbd class="USERINPUT">echo 2222 | gawk --re-interval '/2{3}/'</kbd><br><samp class="COMPUTEROUTPUT">2222</samp><br> </pre></font></td></tr></tbody></table> <p><strong class="COMMAND">Perl</strong>涓庢煇浜涚増鏈殑<strong class="COMMAND">egrep</strong>涓嶉渶瑕佽漿涔夊ぇ鎷彿. </p></td></tr></tbody></table></div></li> <li> <p>鍦嗘嫭鍙?-- <strong class="COMMAND">( )</strong> -- 鎷搗涓緇勬鍒欒〃杈懼紡. 褰撲綘鎯充嬌鐢?a >expr</a>榪涜<a >瀛愬瓧絎︿覆鎻愬彇(substring extraction)</a>鐨勬椂鍊? 鍦嗘嫭鍙峰氨鏈夌敤浜? 濡傛灉鍜屼笅闈㈣璁茬殑<span id="hvzpftn" class="QUOTE">"<span id="hvzpftn" class="TOKEN">|</span>"</span>鎿嶄綔絎︾粨鍚堜嬌鐢? 涔熼潪甯告湁鐢? </p></li> <li> <p>绔栫嚎 -- <strong class="COMMAND">|</strong> -- 灝辨槸RE涓殑<span id="hvzpftn" class="QUOTE">"鎴?</span>鎿嶄綔絎? 浣跨敤瀹冭兘澶熷尮閰嶄竴緇勫彲閫夊瓧絎︿腑鐨勪換鎰忎竴涓? </p> <p> </p> <table style="width: 648px; height: 118px; " border="1" bgcolor="#e0e0e0"> <tbody> <tr> <td><font color="#000000"><pre class="SCREEN"><samp class="PROMPT">bash$ </samp><kbd class="USERINPUT">egrep 're(a|e)d' misc.txt</kbd><br><samp class="COMPUTEROUTPUT">People who read seem to be better informed than those who do not.<br> The clarinet produces sound by the vibration of its reed.</samp><br> </pre></font></td></tr></tbody></table></li></ul> <div id="hvzpftn" class="NOTE"> <table class="NOTE" border="0" width="100%"> <tbody> <tr> <td valign="top" width="25" align="middle"><img hspace="5" alt="Note" src="file:///D:/users/kenwell/Desktop/Linux%20Shell%20Bash%20%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E4%BB%8B%E7%BB%8D%20-%20Powered%20by%20PHPWind.net_files/2452689_1.gif"></td> <td valign="top" align="left"> <p>涓嶨NU宸ュ叿涓鏍? 鏌愪簺鐗堟湰鐨?strong class="COMMAND">sed</strong>, <strong class="COMMAND">ed</strong>, 鍜?strong class="COMMAND">ex</strong>涓鏍瘋兘澶熸敮鎸佹墿灞曟鍒欒〃杈懼紡, 涓婅竟榪欓儴鍒嗗氨鎻忚堪浜嗘墿灞曟鍒欒〃杈懼紡. </p></td></tr></tbody></table></div> <ul> <li style="LIST-STYLE-TYPE: square"> <div id="hvzpftn" class="FORMALPARA"> <p><strong><a name="POSIXREF"></a>POSIX瀛楃綾? </strong><kbd class="USERINPUT">[:class:]</kbd></p></div> <p>榪欐槸鍙﹀涓縐? 鐢ㄤ簬鎸囧畾鍖歸厤瀛楃鑼冨洿鐨勬柟娉? </p></li> <li> <p><kbd class="USERINPUT">[:alnum:]</kbd> 鍖歸厤瀛楁瘝鍜屾暟瀛? 絳変環浜?kbd class="USERINPUT">A-Za-z0-9</kbd>. </p></li> <li> <p><kbd class="USERINPUT">[:alpha:]</kbd> 鍖歸厤瀛楁瘝. 絳変環浜?kbd class="USERINPUT">A-Za-z</kbd>. </p></li> <li> <p><kbd class="USERINPUT">[:blank:]</kbd> 鍖歸厤涓涓┖鏍兼垨鏄竴涓埗琛ㄧ(tab). </p></li> <li> <p><kbd class="USERINPUT">[:cntrl:]</kbd> 鍖歸厤鎺у埗瀛楃. </p></li> <li> <p><kbd class="USERINPUT">[:digit:]</kbd> 鍖歸厤(鍗佽繘鍒?鏁板瓧. 絳変環浜?kbd class="USERINPUT">0-9</kbd>. </p></li> <li> <p><kbd class="USERINPUT">[:graph:]</kbd> (鍙墦鍗扮殑鍥懼艦瀛楃). 鍖歸厤ASCII鐮佸艱寖鍥村湪33 - 126涔嬮棿鐨勫瓧絎? 涓庝笅闈㈡墍鎻愬埌鐨?kbd class="USERINPUT">[:print:]</kbd>綾諱技, 浣嗘槸涓嶅寘鎷┖鏍煎瓧絎?絀烘牸瀛楃鐨凙SCII鐮佹槸32). </p></li> <li> <p><kbd class="USERINPUT">[:lower:]</kbd> 鍖歸厤灝忓啓瀛楁瘝. 絳変環浜?kbd class="USERINPUT">a-z</kbd>. </p></li> <li> <p><kbd class="USERINPUT">[:print:]</kbd> (鍙墦鍗扮殑鍥懼艦瀛楃). 鍖歸厤ASCII鐮佸艱寖鍥村湪32 - 126涔嬮棿鐨勫瓧絎? 涓庝笂杈圭殑<kbd class="USERINPUT">[:graph:]</kbd>綾諱技, 浣嗘槸鍖呭惈絀烘牸. </p></li> <li> <p><kbd class="USERINPUT">[:space:]</kbd> 鍖歸厤絀虹櫧瀛楃(絀烘牸鍜屾按騫沖埗琛ㄧ). </p></li> <li> <p><kbd class="USERINPUT">[:upper:]</kbd> 鍖歸厤澶у啓瀛楁瘝. 絳変環浜?kbd class="USERINPUT">A-Z</kbd>. </p></li> <li> <p><kbd class="USERINPUT">[:xdigit:]</kbd> 鍖歸厤16榪涘埗鏁板瓧. 絳変環浜?kbd class="USERINPUT">0-9A-Fa-f</kbd>. </p> <div id="hvzpftn" class="IMPORTANT"> <table class="IMPORTANT" border="0" width="90%"> <tbody> <tr> <td valign="top" width="25" align="middle"><img hspace="5" alt="Important" src="file:///D:/users/kenwell/Desktop/Linux%20Shell%20Bash%20%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E4%BB%8B%E7%BB%8D%20-%20Powered%20by%20PHPWind.net_files/2452689_2.gif"></td> <td valign="top" align="left"> <p>POSIX瀛楃綾婚氬父閮借鐢ㄥ紩鍙鋒垨<a >鍙屼腑鎷彿</a>([[ ]])寮曡搗鏉? </p> <p> </p> <table style="width: 497px; height: 99px; " border="1" bgcolor="#e0e0e0"> <tbody> <tr> <td><font color="#000000"><pre class="SCREEN"><samp class="PROMPT">bash$ </samp><kbd class="USERINPUT">grep [[:digit:]] test.file</kbd><br><samp class="COMPUTEROUTPUT">abc=723</samp><br> </pre></font></td></tr></tbody></table> <p>濡傛灉鍦ㄤ竴涓彈闄愮殑鑼冨洿鍐? 榪欎簺瀛楃綾葷敋鑷沖彲浠ョ敤鍦?a >閫氶厤(globbing)</a>涓? </p> <p> </p> <table style="width: 555px; height: 99px; " border="1" bgcolor="#e0e0e0"> <tbody> <tr> <td><font color="#000000"><pre class="SCREEN"><samp class="PROMPT">bash$ </samp><kbd class="USERINPUT">ls -l ?[[:digit:]][[:digit:]]?</kbd><br><samp class="COMPUTEROUTPUT">-rw-rw-r-- 1 bozo bozo 0 Aug 21 14:47 a33b</samp><br> </pre></font></td></tr></tbody></table> <p>濡傛灉鎯充簡瑙OSIX瀛楃綾誨湪鑴氭湰涓殑浣跨敤鎯呭喌, 璇峰弬鑰?a >渚嬪瓙 12-18</a>鍜?a >渚嬪瓙 12-19</a>. </p></td></tr></tbody></table></div></li></ul> <p><a >Sed</a>, <a >awk</a>, 鍜?a >Perl</a>鍦ㄨ剼鏈腑涓鑸兘琚敤浣滆繃婊ゅ櫒, 榪欎簺榪囨護鍣ㄥ皢浼氫互RE涓哄弬鏁? 瀵規枃浠舵垨鑰匢/O嫻佽繘琛?榪囨護"鎴栬漿鎹? 璇峰弬鑰?a >渚嬪瓙 A-12</a>鍜?a >渚嬪瓙 A-17</a>, 鏉ヨ緇嗕簡瑙h繖縐嶇敤娉? </p> <p>瀵逛簬RE榪欎釜澶嶆潅鐨勪富棰? 鏍囧噯鐨勫弬鑰冩潗鏂欐槸Friedl鐨?em class="CITETITLE">Mastering Regular Expressions</em>. 鐢盌ougherty鍜孯obbins鎵緙栧啓鐨?em class="CITETITLE">Sed & Awk</em>榪欐湰涔? 涔熷RE榪涜浜嗘竻鏅扮殑璁鴻堪. 濡傛灉鎯寵幏寰楄繖浜涗功鐨勬洿澶氫俊鎭? 璇峰療鐪?a ><em>鍙傝冩枃鐚?/em></a>. </p> <h3 class="FOOTNOTES">娉ㄦ剰浜嬮」</h3> <table class="FOOTNOTES" border="0" width="100%"> <tbody> <tr> <td valign="top" width="5%" align="left"><a name="FTN.AEN13724"><span id="hvzpftn" class="footnote">[1]</span></a></td> <td valign="top" width="95%" align="left"> <p>鍥犱負<a >sed</a>, <a >awk</a>, 鍜?a >grep</a>閫氬父鐢ㄤ簬澶勭悊鍗曡, 浣嗘槸涓嶈兘鍖歸厤涓涓崲琛岀. 濡傛灉浣犳兂澶勭悊澶氳杈撳叆鐨勮瘽, 閭d箞浣犲彲浠ヤ嬌鐢?鐐?鏉ュ尮閰嶆崲琛岀. </p> <table style="width: 520px; height: 532px; " border="0" bgcolor="#e0e0e0"> <tbody> <tr> <td><font color="#000000"><pre class="PROGRAMLISTING"> 1 #!/bin/bash<br> 2 <br> 3 sed -e 'N;s/.*/[&]/' << EOF # Here Document<br> 4 line1<br> 5 line2<br> 6 EOF<br> 7 # 杈撳嚭:<br> 8 # [line1<br> 9 # line2]<br> 10 <br> 11 <br> 12 <br> 13 echo<br> 14 <br> 15 awk '{ $0=$1 "\n" $2; if (/line.1/) {print}}' << EOF<br> 16 line 1<br> 17 line 2<br> 18 EOF<br> 19 # 杈撳嚭:<br> 20 # line<br> 21 # 1<br> 22 <br> 23 <br> 24 # 鎰熻阿, S.C.<br> 25 <br> 26 exit 0</pre></font></td></tr></tbody></table></td></tr></tbody></table><p> </p> <img src ="http://m.shnenglu.com/kenwell/aggbug/119014.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/kenwell/" target="_blank">c++ 瀛︿範</a> 2010-06-30 22:15 <a href="http://m.shnenglu.com/kenwell/archive/2010/06/30/119014.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>shell綆楁湳琛ㄨ揪寮忔搷浣滄柟娉曟眹鎬?/title><link>http://m.shnenglu.com/kenwell/archive/2010/06/28/118870.html</link><dc:creator>c++ 瀛︿範</dc:creator><author>c++ 瀛︿範</author><pubDate>Mon, 28 Jun 2010 09:03:00 GMT</pubDate><guid>http://m.shnenglu.com/kenwell/archive/2010/06/28/118870.html</guid><wfw:comment>http://m.shnenglu.com/kenwell/comments/118870.html</wfw:comment><comments>http://m.shnenglu.com/kenwell/archive/2010/06/28/118870.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/kenwell/comments/commentRss/118870.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/kenwell/services/trackbacks/118870.html</trackback:ping><description><![CDATA[ <p class="MsoListParagraph" align="left" style="margin-left:21.0pt;text-align:left; text-indent:-21.0pt;mso-char-indent-count:0;mso-pagination:widow-orphan; mso-list:l0 level1 lfo1"><strong style="mso-bidi-font-weight: normal"><span lang="EN-US" style="font-size:13.5pt;font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman";color:black;mso-font-kerning:0pt"><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">       </span></span></span></strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-US" style="font-size:13.5pt;mso-bidi-font-size:11.0pt;font-family:"Times New Roman","serif"; mso-fareast-font-family:瀹嬩綋;color:black;mso-font-kerning:0pt">expr expression</span></strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-US" style="font-size:13.5pt; font-family:"Times New Roman","serif";mso-fareast-font-family:瀹嬩綋;color:black; mso-font-kerning:0pt"><o:p></o:p></span></strong></p> <p class="MsoNormal" align="left" style="text-align:left;mso-pagination:widow-orphan; background:white"><span lang="EN-US" style="font-size:13.5pt;font-family:"Times New Roman","serif"; mso-fareast-font-family:瀹嬩綋;color:black;mso-font-kerning:0pt">expr</span><span style="font-size:13.5pt;font-family:瀹嬩綋;mso-ascii-font-family:"Times New Roman"; mso-hansi-font-family:"Times New Roman";mso-bidi-font-family:"Times New Roman"; color:black;mso-font-kerning:0pt">鍙兘鐢ㄤ簬涓鍏冩搷浣滅</span><span lang="EN-US" style="font-size:13.5pt;font-family:"Times New Roman","serif";mso-fareast-font-family: 瀹嬩綋;color:black;mso-font-kerning:0pt">,</span><span style="font-size:13.5pt; font-family:瀹嬩綋;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family: "Times New Roman";mso-bidi-font-family:"Times New Roman";color:black; mso-font-kerning:0pt">涓嶆敮鎸佷簩鍏冩搷浣滅</span><span lang="EN-US" style="font-size:12.0pt; font-family:瀹嬩綋;mso-bidi-font-family:瀹嬩綋;mso-font-kerning:0pt"><o:p></o:p></span></p> <p class="MsoNormal" align="left" style="text-align:left;mso-pagination:widow-orphan; background:white"><span lang="EN-US" style="font-size:8.0pt;mso-bidi-font-size: 11.0pt;font-family:"Courier New";mso-fareast-font-family:瀹嬩綋;mso-bidi-font-family: "Times New Roman";color:teal;mso-font-kerning:0pt">1</span><span lang="EN-US" style="font-size:8.0pt;mso-bidi-font-size:11.0pt;font-family:"Courier New"; mso-fareast-font-family:瀹嬩綋;mso-bidi-font-family:"Times New Roman";color:black; mso-font-kerning:0pt"> x=</span><span lang="EN-US" style="font-size:8.0pt; mso-bidi-font-size:11.0pt;font-family:"Courier New";mso-fareast-font-family: 瀹嬩綋;mso-bidi-font-family:"Times New Roman";color:maroon;mso-font-kerning:0pt">1</span><span lang="EN-US" style="font-size:8.0pt;mso-bidi-font-size:11.0pt;font-family:"Courier New"; mso-fareast-font-family:瀹嬩綋;mso-bidi-font-family:"Times New Roman";color:black; mso-font-kerning:0pt"><o:p></o:p></span></p> <p class="MsoNormal" align="left" style="text-align:left;mso-pagination:widow-orphan; background:white"><span lang="EN-US" style="font-size:8.0pt;mso-bidi-font-size: 11.0pt;font-family:"Courier New";mso-fareast-font-family:瀹嬩綋;mso-bidi-font-family: "Times New Roman";color:teal;mso-font-kerning:0pt">2</span><span lang="EN-US" style="font-size:8.0pt;mso-bidi-font-size:11.0pt;font-family:"Courier New"; mso-fareast-font-family:瀹嬩綋;mso-bidi-font-family:"Times New Roman";color:black; mso-font-kerning:0pt"> x=$(expr </span><span lang="EN-US" style="font-size:8.0pt; mso-bidi-font-size:11.0pt;font-family:"Courier New";mso-fareast-font-family: 瀹嬩綋;mso-bidi-font-family:"Times New Roman";color:purple;mso-font-kerning:0pt">$x</span><span lang="EN-US" style="font-size:8.0pt;mso-bidi-font-size:11.0pt;font-family:"Courier New"; mso-fareast-font-family:瀹嬩綋;mso-bidi-font-family:"Times New Roman";color:black; mso-font-kerning:0pt"> + </span><span lang="EN-US" style="font-size:8.0pt; mso-bidi-font-size:11.0pt;font-family:"Courier New";mso-fareast-font-family: 瀹嬩綋;mso-bidi-font-family:"Times New Roman";color:maroon;mso-font-kerning:0pt">1)<o:p></o:p></span></p> <p class="MsoNormal" align="left" style="text-align:left;mso-pagination:widow-orphan; background:white"><span lang="EN-US" style="font-size:8.0pt;mso-bidi-font-size: 11.0pt;font-family:"Courier New";mso-fareast-font-family:瀹嬩綋;mso-bidi-font-family: "Times New Roman";color:maroon;mso-font-kerning:0pt">$x + 1</span><span style="font-size:8.0pt;mso-bidi-font-size:11.0pt;font-family:瀹嬩綋;mso-ascii-font-family: "Courier New";mso-hansi-font-family:"Courier New";mso-bidi-font-family:"Times New Roman"; color:maroon;mso-font-kerning:0pt">涔嬮棿蹇呴』鏈夌┖鏍?/span><span lang="EN-US" style="font-size:13.5pt;font-family:"Times New Roman","serif";mso-fareast-font-family: 瀹嬩綋;color:black;mso-font-kerning:0pt"><o:p></o:p></span></p> <p class="MsoListParagraph" align="left" style="margin-left:21.0pt;text-align:left; text-indent:-21.0pt;mso-char-indent-count:0;mso-pagination:widow-orphan; mso-list:l0 level1 lfo1"><strong style="mso-bidi-font-weight: normal"><span lang="EN-US" style="font-size:13.5pt;font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman";color:black;mso-font-kerning:0pt"><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">       </span></span></span></strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-US" style="font-size:13.5pt;mso-bidi-font-size:11.0pt;font-family:"Times New Roman","serif"; mso-fareast-font-family:瀹嬩綋;color:black;mso-font-kerning:0pt">let expression</span></strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-US" style="font-size:13.5pt; font-family:"Times New Roman","serif";mso-fareast-font-family:瀹嬩綋;color:black; mso-font-kerning:0pt"><o:p></o:p></span></strong></p> <p class="MsoNormal"><span lang="EN-US">let </span><span style="font-family:瀹嬩綋; mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-fareast-font-family: 瀹嬩綋;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin">鐨勪嬌鐢ㄦ柟寮?/span></p> <p class="MsoNormal"><span lang="EN-US">x=10</span></p> <p class="MsoNormal"><span lang="EN-US">let x=$x+1</span></p> <p class="MsoNormal"><span lang="EN-US">let x+=1</span></p> <p class="MsoNormal"><span lang="EN-US">let x*=10</span></p> <p class="MsoNormal"><span style="font-family:瀹嬩綋;mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:瀹嬩綋;mso-fareast-theme-font: minor-fareast;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin">絳?/span></p> <p class="MsoNormal"><span lang="EN-US">Let</span><span style="font-family:瀹嬩綋; mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-fareast-font-family: 瀹嬩綋;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin">娌℃湁榪斿洖鍊?/span></p> <p class="MsoListParagraph" align="left" style="margin-left:21.0pt;text-align:left; text-indent:-21.0pt;mso-char-indent-count:0;mso-pagination:widow-orphan; mso-list:l0 level1 lfo1"><strong style="mso-bidi-font-weight: normal"><span lang="EN-US" style="font-size:13.5pt;font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman";color:black;mso-font-kerning:0pt"><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">       </span></span></span></strong><strong style="mso-bidi-font-weight:normal"><span style="font-size:13.5pt;mso-bidi-font-size:11.0pt;font-family:瀹嬩綋;mso-ascii-font-family: "Times New Roman";mso-hansi-font-family:"Times New Roman";mso-bidi-font-family: "Times New Roman";color:black;mso-font-kerning:0pt">浣跨敤</span></strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-US" style="font-size:13.5pt; mso-bidi-font-size:11.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family: 瀹嬩綋;color:black;mso-font-kerning:0pt">$((expression ))</span></strong><strong style="mso-bidi-font-weight:normal"><span style="font-size:13.5pt;mso-bidi-font-size: 11.0pt;font-family:瀹嬩綋;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family: "Times New Roman";mso-bidi-font-family:"Times New Roman";color:black; mso-font-kerning:0pt">鎴?/span></strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-US" style="font-size:13.5pt;mso-bidi-font-size:11.0pt;font-family:"Times New Roman","serif"; mso-fareast-font-family:瀹嬩綋;color:black;mso-font-kerning:0pt">((expression))</span></strong><strong style="mso-bidi-font-weight:normal"><span style="font-size:13.5pt;mso-bidi-font-size: 11.0pt;font-family:瀹嬩綋;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family: "Times New Roman";mso-bidi-font-family:"Times New Roman";color:black; mso-font-kerning:0pt">褰㈠紡</span></strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-US" style="font-size:13.5pt;font-family:"Times New Roman","serif"; mso-fareast-font-family:瀹嬩綋;color:black;mso-font-kerning:0pt"><o:p></o:p></span></strong></p> <p class="MsoNormal"><span lang="EN-US">((expression))</span><span style="font-family:瀹嬩綋;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin; mso-fareast-font-family:瀹嬩綋;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family: Calibri;mso-hansi-theme-font:minor-latin">鐨勪嬌鐢ㄦ柟娉?/span></p> <p class="MsoNormal"><span lang="EN-US">x=10</span></p> <p class="MsoNormal"><span lang="EN-US">((x+=10))</span></p> <p class="MsoNormal"><span lang="EN-US">(( expression)) </span><span style="font-family:瀹嬩綋;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin; mso-fareast-font-family:瀹嬩綋;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family: Calibri;mso-hansi-theme-font:minor-latin">鐢ㄦ硶鍜?/span><span lang="EN-US">let</span><span style="font-family:瀹嬩綋;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin; mso-fareast-font-family:瀹嬩綋;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family: Calibri;mso-hansi-theme-font:minor-latin">綾諱技</span></p> <p class="MsoNormal"><span lang="EN-US">$(())</span><span style="font-family:瀹嬩綋; mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-fareast-font-family: 瀹嬩綋;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin">鐨勪嬌鐢ㄧ敤娉?/span></p> <p class="MsoNormal"><span style="font-family:瀹嬩綋;mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:瀹嬩綋;mso-fareast-theme-font: minor-fareast;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin">錛?/span><span lang="EN-US"> $((x=$x+10))</span></p> <p class="MsoNormal"><span lang="EN-US">echo $x</span></p> <p class="MsoNormal"><span lang="EN-US">y=$((x=$x-10))</span></p> <p class="MsoNormal"><span lang="EN-US">echo $y</span></p> <p class="MsoNormal"><span lang="EN-US">y=$(($x+1))</span></p> <p class="MsoNormal"><span lang="EN-US">echo $y</span></p> <p class="MsoNormal"><span lang="EN-US">echo $x</span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoListParagraph" align="left" style="margin-left:21.0pt;text-align:left; text-indent:-21.0pt;mso-char-indent-count:0;mso-pagination:widow-orphan; mso-list:l0 level1 lfo1"><strong style="mso-bidi-font-weight: normal"><span lang="EN-US" style="font-size:13.5pt;font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman";color:black;mso-font-kerning:0pt"><span style="mso-list:Ignore">4.<span style="font:7.0pt "Times New Roman"">       </span></span></span></strong><strong style="mso-bidi-font-weight:normal"><span style="font-size:13.5pt;mso-bidi-font-size:11.0pt;font-family:瀹嬩綋;mso-ascii-font-family: "Times New Roman";mso-hansi-font-family:"Times New Roman";mso-bidi-font-family: "Times New Roman";color:black;mso-font-kerning:0pt">浣跨敤</span></strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-US" style="font-size:13.5pt; mso-bidi-font-size:11.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family: 瀹嬩綋;color:black;mso-font-kerning:0pt">$[<span style="mso-spacerun:yes">  </span>]</span></strong><strong style="mso-bidi-font-weight:normal"><span style="font-size:13.5pt;mso-bidi-font-size:11.0pt;font-family:瀹嬩綋;mso-ascii-font-family: "Times New Roman";mso-hansi-font-family:"Times New Roman";mso-bidi-font-family: "Times New Roman";color:black;mso-font-kerning:0pt">褰㈠紡</span></strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-US" style="font-size:13.5pt; font-family:"Times New Roman","serif";mso-fareast-font-family:瀹嬩綋;color:black; mso-font-kerning:0pt"><o:p></o:p></span></strong></p> <p class="MsoNormal"><span style="font-family:瀹嬩綋;mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:瀹嬩綋;mso-fareast-theme-font: minor-fareast;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin">渚嬪錛?/span></p> <p class="MsoNormal"><span lang="EN-US">n=1</span></p> <p class="MsoNormal"><span lang="EN-US">:<span style="mso-spacerun:yes">  </span>$[ n=$n+1 ](</span><span style="font-family:瀹嬩綋;mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:瀹嬩綋;mso-fareast-theme-font: minor-fareast;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin">錛氬拰</span><span lang="EN-US">$</span><span style="font-family:瀹嬩綋;mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:瀹嬩綋;mso-fareast-theme-font: minor-fareast;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin">涔嬮棿鏈夌┖鏍?/span><span lang="EN-US">)</span></p> <p class="MsoNormal"><span lang="EN-US">y=$[ n = $n + 1 ]</span></p> <p class="MsoNormal"><span lang="EN-US">echo $y</span></p> <p class="MsoNormal"><span lang="EN-US">y=$[ $n+1 ]</span></p> <p class="MsoNormal"><span lang="EN-US">echo $y</span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoListParagraph" align="left" style="margin-left:21.0pt;text-align:left; text-indent:-21.0pt;mso-char-indent-count:0;mso-pagination:widow-orphan; mso-list:l0 level1 lfo1"><strong style="mso-bidi-font-weight: normal"><span lang="EN-US" style="font-size:13.5pt;font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman";color:black;mso-font-kerning:0pt"><span style="mso-list:Ignore">5.<span style="font:7.0pt "Times New Roman"">       </span></span></span></strong><strong style="mso-bidi-font-weight:normal"><span style="font-size:13.5pt;mso-bidi-font-size:11.0pt;font-family:瀹嬩綋;mso-ascii-font-family: "Times New Roman";mso-hansi-font-family:"Times New Roman";mso-bidi-font-family: "Times New Roman";color:black;mso-font-kerning:0pt">浣跨敤</span></strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-US" style="font-size:13.5pt; mso-bidi-font-size:11.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family: 瀹嬩綋;color:black;mso-font-kerning:0pt">decalare<span style="mso-spacerun:yes">  </span></span></strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-US" style="font-size:13.5pt;font-family:"Times New Roman","serif";mso-fareast-font-family: 瀹嬩綋;color:black;mso-font-kerning:0pt"><o:p></o:p></span></strong></p> <p class="MsoNormal"><span style="font-family:瀹嬩綋;mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:瀹嬩綋;mso-fareast-theme-font: minor-fareast;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin">渚嬪瓙錛?/span></p> <p class="MsoNormal"><span lang="EN-US">decare –i num</span></p> <p class="MsoNormal"><span lang="EN-US">num=$num+1</span></p> <p class="MsoNormal"><span lang="EN-US">echo $num</span></p><img src ="http://m.shnenglu.com/kenwell/aggbug/118870.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/kenwell/" target="_blank">c++ 瀛︿範</a> 2010-06-28 17:03 <a href="http://m.shnenglu.com/kenwell/archive/2010/06/28/118870.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Bash Process Substitution(shell 榪涚▼鏇挎崲錛?/title><link>http://m.shnenglu.com/kenwell/archive/2010/06/27/118826.html</link><dc:creator>c++ 瀛︿範</dc:creator><author>c++ 瀛︿範</author><pubDate>Sun, 27 Jun 2010 09:15:00 GMT</pubDate><guid>http://m.shnenglu.com/kenwell/archive/2010/06/27/118826.html</guid><wfw:comment>http://m.shnenglu.com/kenwell/comments/118826.html</wfw:comment><comments>http://m.shnenglu.com/kenwell/archive/2010/06/27/118826.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/kenwell/comments/commentRss/118826.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/kenwell/services/trackbacks/118826.html</trackback:ping><description><![CDATA[<div class="hvzpftn" id="content-header" style="margin-bottom: 10px; "><h1 class="title" style="font-family: Arial, sans-serif; font-size: 1.4em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Bash Process Substitution</h1></div><div class="hvzpftn" id="content-area" style="padding-bottom: 20px; "><div class="hvzpftn" id="node-1006985" class="node node-type-story" style="margin-top: 1em; margin-right: 1em; margin-bottom: 1em; margin-left: 1em; "><div id="hvzpftn" class="node-inner"><div id="hvzpftn" class="meta" style="font-size: 0.9em; margin-top: 0.1em; "><div id="hvzpftn" class="submitted">May 22, 2008  By <a title="View user profile." style="text-decoration: none; color: rgb(0, 51, 102); ">Mitch Frazier</a></div><div id="hvzpftn" class="terms terms-inline" style="display: block; margin-top: 5px; "> in<ul class="links inline" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; display: inline; "><li id="hvzpftn" class="taxonomy_term_19 first last" style="display: inline; list-style-type: none; padding-top: 0px; padding-right: 0.5em; padding-bottom: 0px; padding-left: 0.5em; "><a rel="tag" title="" style="text-decoration: none; color: rgb(102, 102, 102); ">HOW-TOs</a></li></ul></div></div><div id="hvzpftn" class="content" style="margin-top: 20px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; font-family: Georgia, serif; line-height: 1.3em; "><p>In addition to the fairly common forms of <a style="text-decoration: none; color: rgb(0, 51, 102); ">input/output redirection</a> the shell recognizes something called <em>process substitution</em>. Although not documented as a form of input/output redirection, its syntax and its effects are similar.</p><p>The syntax for process substitution is:</p><pre style="overflow-x: auto; overflow-y: auto; "> <(list) or >(list) </pre>where each <em>list</em> is a command or a pipeline of commands. The effect of process substitution is to make each list act like a file. This is done by giving the list a <em>name</em> in the file system and then substituting that name in the command line. The list is given a name either by connecting the list to named pipe or by using a file in <tt>/dev/fd</tt> (if supported by the O/S). By doing this, the command simply sees a file name and is unaware that its reading from or writing to a command pipeline.<p> </p><p>To substitute a command pipeline for an input file the syntax is:</p><pre style="overflow-x: auto; overflow-y: auto; "> command ... <(list) ... </pre>To substitute a command pipeline for an output file the syntax is:<pre style="overflow-x: auto; overflow-y: auto; "> command ... >(list) ... </pre><p> </p><p>At first process substitution may seem rather pointless, for example you might imagine something simple like:</p><pre style="overflow-x: auto; overflow-y: auto; "> uniq <(sort a) </pre>to sort a file and then find the unique lines in it, but this is more commonly (and more conveniently) written as:<pre style="overflow-x: auto; overflow-y: auto; "> sort a | uniq </pre>The power of process substitution comes when you have multiple command pipelines that you want to connect to a single command.<p> </p><p>For example, given the two files:</p><pre style="overflow-x: auto; overflow-y: auto; "> # cat a e d c b a # cat b g f e d c b </pre>To view the lines unique to each of these two unsorted files you might do something like this:<pre style="overflow-x: auto; overflow-y: auto; "> # sort a | uniq >tmp1 # sort b | uniq >tmp2 # comm -3 tmp1 tmp2 a f g # rm tmp1 tmp2 </pre>With process substitution we can do all this with one line:<pre style="overflow-x: auto; overflow-y: auto; "> # comm -3 <(sort a | uniq) <(sort b | uniq) a f g </pre><p> </p><p>Depending on your shell settings you may get an error message similar to:</p><pre style="overflow-x: auto; overflow-y: auto; "> syntax error near unexpected token `(' </pre>when you try to use process substitution, particularly if you try to use it within a shell script. Process substitution is not a POSIX compliant feature and so it may have to be enabled via:<pre style="overflow-x: auto; overflow-y: auto; "> set +o posix </pre>Be careful not to try something like:<pre style="overflow-x: auto; overflow-y: auto; "> if [[ $use_process_substitution -eq 1 ]]; then set +o posix comm -3 <(sort a | uniq) <(sort b | uniq) fi </pre>The command <tt>set +o posix</tt> enables not only the execution of process substitution but the recognition of the syntax. So, in the example above the shell tries to parse the process substitution syntax before the "set" command is executed and therefore still sees the process substitution syntax as illegal.<p> </p><p>Of course, note that all shells may not support process substitution, these examples will work with bash.<br><br></p><p><br></p><p><p>榪涚▼鏇挎崲涓庡懡浠ゆ浛鎹㈠緢鐩鎬技. 鍛戒護鏇挎崲鎶婁竴涓懡浠ょ殑緇撴灉璧嬪肩粰涓涓彉閲? 姣斿dir_contents=`ls -</p><p>al`鎴杧ref=$( grep word datafile). 榪涚▼鏇挎崲鎶婁竴涓繘紼嬬殑杈撳嚭鎻愪緵緇欏彟涓涓繘紼?鎹㈠彞璇濊, 瀹冩妸</p><p>涓涓懡浠ょ殑緇撴灉鍙戠粰浜嗗彟涓涓懡浠?.</p><p>鍛戒護鏇挎崲鐨勬ā鐗?/p><p>鐢ㄥ渾鎷彿鎵╄搗鏉ョ殑鍛戒護</p><p>>(command)</p><p><(command)</p><p>鍚姩榪涚▼鏇挎崲. 瀹冧嬌鐢?dev/fd/<n>鏂囦歡灝嗗渾鎷彿涓殑榪涚▼澶勭悊緇撴灉鍙戦佺粰鍙︿竴涓繘紼? [1] (璇?/p><p>鑰呮敞: 瀹為檯涓婄幇浠g殑UNIX綾繪搷浣滅郴緇熸彁渚涚殑/dev/fd/n鏂囦歡鏄笌鏂囦歡鎻忚堪絎︾浉鍏崇殑, 鏁存暟n鎸囩殑灝?/p><p>鏄繘紼嬭繍琛屾椂瀵瑰簲鏁板瓧鐨勬枃浠舵弿榪扮)</p><p>鍦?<"鎴?>"涓庡渾鎷彿涔嬮棿鏄病鏈夌┖鏍肩殑. 濡傛灉鍔犱簡絀烘牸, 浼氫駭鐢熼敊璇?</p><p>bash$ echo >(true)</p><p>/dev/fd/63</p><p>bash$ echo <(true)</p><p>/dev/fd/63</p><p>Bash鍦ㄤ袱涓枃浠舵弿榪扮涔嬮棿鍒涘緩浜嗕竴涓閬? --fIn鍜宖Out--. true鍛戒護鐨剆tdin琚繛鎺ュ埌fOut</p><p>(dup2(fOut, 0)), 鐒跺悗Bash鎶?dev/fd/fIn浣滀負鍙傛暟浼犵粰echo. 濡傛灉緋葷粺緙轟箯/dev/fd/<n>鏂囦歡, Bash浼?/p><p>浣跨敤涓存椂鏂囦歡. (鎰熻阿, S.C.)</p><p>榪涚▼鏇挎崲鍙互姣旇緝涓や釜涓嶅悓鍛戒護鐨勮緭鍑? 鐢氳嚦鑳藉姣旇緝鍚屼竴涓懡浠や笉鍚岄夐」鎯呭喌涓嬬殑杈撳嚭.</p><p>bash$ comm <(ls -l) <(ls -al)</p><p>total 12</p><p>-rw-rw-r-- 1 bozo bozo 78 Mar 10 12:58 File0</p><p>-rw-rw-r-- 1 bozo bozo 42 Mar 10 12:58 File2</p><p>-rw-rw-r-- 1 bozo bozo 103 Mar 10 12:58 t2.sh</p><p>total 20</p><p>drwxrwxrwx 2 bozo bozo 4096 Mar 10 18:10 .</p><p>drwx------ 72 bozo bozo 4096 Mar 10 17:58 ..</p><p>-rw-rw-r-- 1 bozo bozo 78 Mar 10 12:58 File0</p><p>-rw-rw-r-- 1 bozo bozo 42 Mar 10 12:58 File2</p><p>-rw-rw-r-- 1 bozo bozo 103 Mar 10 12:58 t2.sh</p><p>浣跨敤榪涚▼鏇挎崲鏉ユ瘮杈冧袱涓笉鍚岀洰褰曠殑鍐呭(鍙互鏌ョ湅鍝簺鏂囦歡鍚嶇浉鍚? 鍝簺鏂囦歡鍚嶄笉鍚?:</p><p>1 diff <(ls $first_directory) <(ls $second_directory)</p><p>涓浜涜繘紼嬫浛鎹㈢殑鍏朵粬鐢ㄦ硶涓庢妧宸?</p><p>1 cat <(ls -l)</p><p>2 # 絳変環浜?ls -l | cat</p><p>3</p><p>4 sort -k 9 <(ls -l /bin) <(ls -l /usr/bin) <(ls -l /usr/X11R6/bin)</p><p>5 # 鍒楀嚭緋葷粺3涓富瑕?bin'鐩綍涓殑鎵鏈夋枃浠? 騫朵笖鎸夋枃浠跺悕榪涜鎺掑簭.</p><p>6 # 娉ㄦ剰鏄?涓?鏌ヤ竴涓? 涓婇潰灝?涓渾鎷彿)鏄庢樉涓嶅悓鐨勫懡浠よ緭鍑轟紶閫掔粰'sort'.</p><p>7</p><p>8</p><p>9 diff <(command1) <(command2) # 緇欏嚭涓や釜鍛戒護杈撳嚭鐨勪笉鍚屼箣澶?</p><p>10</p><p>11 tar cf >(bzip2 -c > file.tar.bz2) $directory_name</p><p>12 # 璋冪敤"tar cf /dev/fd/?? $directory_name", 鍜?bzip2 -c > file.tar.bz2".</p><p>13 #</p><p>14 # 鍥犱負/dev/fd/<n>鐨勭郴緇熷睘鎬?</p><p>15 # 鎵浠ヤ袱涓懡浠や箣闂寸殑綆¢亾涓嶅繀琚懡鍚?</p><p>16 #</p><p>17 # 榪欑鏁堟灉鍙互琚ā鎷熷嚭鏉?</p><p>18 #</p><p>19 bzip2 -c < pipe > file.tar.bz2&</p><p>20 tar cf pipe $directory_name</p><p>21 rm pipe</p><p>22 # 鎴?/p><p>23 exec 3>&1</p><p>24 tar cf /dev/fd/4 $directory_name 4>&1 >&3 3>&- | bzip2 -c > file.tar.bz2 3>&-</p><p>25 exec 3>&-</p><p>26</p><p>27</p><p>28 # 鎰熻阿, Stephane Chazelas</p><p>涓涓鑰呯粰鎴戝彂浜嗕竴涓湁瓚g殑渚嬪瓙, 鏄叧浜庤繘紼嬫浛鎹㈢殑, 濡備笅.</p><p>1 # 鎽樿嚜SuSE鍙戣鐗堜腑鐨勪唬鐮佺墖鏂?</p><p>2</p><p>3 while read des what mask iface; do</p><p>4 # 榪欓噷鐪佺暐浜嗕竴浜涘懡浠?..</p><p>5 done < <(route -n)</p><p>6</p><p>7</p><p>8 # 涓轟簡嫻嬭瘯瀹? 鎴戜滑璁╁畠鍋氱偣浜?</p><p>9 while read des what mask iface; do</p><p>10 echo $des $what $mask $iface</p><p>11 done < <(route -n)</p><p>12</p><p>13 # 杈撳嚭:</p><p>14 # Kernel IP routing table</p><p>15 # Destination Gateway Genmask Flags Metric Ref Use Iface</p><p>16 # 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo</p><p>17</p><p>18</p><p>19</p><p>20 # 灝卞儚Stephane Chazelas鎵緇欏嚭鐨勯偅鏍? 涓涓洿瀹規槗鐞嗚В鐨勭瓑浠蜂唬鐮佹槸:</p><p>21 route -n |</p><p>22 while read des what mask iface; do # 綆¢亾鐨勮緭鍑鴻璧嬪肩粰浜嗗彉閲?</p><p>23 echo $des $what $mask $iface</p><p>24 done # 榪欏皢浜х敓鍑轟笌涓婅竟鐩稿悓鐨勮緭鍑?</p><p>25 # 鐒惰? Ulrich Gayer鎸囧嚭 . . .</p><p>26 #+ 榪欎釜綆鍗曠殑絳変環鐗堟湰鍦╳hile寰幆涓嬌鐢ㄤ簡涓涓瓙shell,</p><p>27 #+ 鍥犳褰撶閬撶粨鏉熷悗, 鍙橀噺灝辨秷澶變簡.</p><p>28</p><p>29</p><p>30</p><p>31 # 鏇磋繘涓姝? Filip Moritz瑙i噴浜嗕笂闈袱涓緥瀛愪箣闂村瓨鍦ㄤ竴涓粏寰殑涓嶅悓涔嬪,</p><p>32 #+ 濡備笅鎵紺?</p><p>33</p><p>34 (</p><p>35 route -n | while read x; do ((y++)); done</p><p>36 echo $y # $y 浠嶇劧娌℃湁琚0鏄庢垨璁劇疆</p><p>37</p><p>38 while read x; do ((y++)); done < <(route -n)</p><p>39 echo $y # $y 鐨勫間負route -n鐨勮緭鍑鴻鏁?</p><p>40 )</p><p>41</p><p>42 # 涓鑸潵璇? (璇戣呮敞: 鍘熶功浣滆呭湪榪欓噷騫舵湭鍔犳敞閲婄鍙?#", 搴旇鏄瑪璇?</p><p>43 (</p><p>44 : | x=x</p><p>45 # 鐪嬩笂鍘繪槸鍚姩浜嗕竴涓瓙shell</p><p>46 : | ( x=x )</p><p>47 # 浣?/p><p>48 x=x < <(:)</p><p>49 # 鍏跺疄涓嶆槸</p><p>50 )</p><p>51</p><p>52 # 褰撲綘瑕佽В鏋恈sv鎴栫被浼間笢瑗跨殑鏃朵警, 榪欓潪甯告湁鐢?</p><p>53 # 浜嬪疄涓? 榪欏氨鏄疭uSE鐨勮繖涓唬鐮佺墖鏂墍瑕佸疄鐜扮殑鍔熻兘.</p><p>娉ㄦ剰浜嬮」</p><p>[1] 榪欎笌鍛藉悕綆¢亾(涓存椂鏂囦歡)鍏鋒湁鐩稿悓鐨勪綔鐢? 騫朵笖, 浜嬪疄涓? 鍛藉悕綆¢亾涔熻鍚屾椂浣跨敤鍦ㄨ繘紼?/p><p>鏇挎崲涓?</p></p></div></div></div></div><img src ="http://m.shnenglu.com/kenwell/aggbug/118826.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/kenwell/" target="_blank">c++ 瀛︿範</a> 2010-06-27 17:15 <a href="http://m.shnenglu.com/kenwell/archive/2010/06/27/118826.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍏充簬bash鐨勭閬撲笌榪涚▼鐨勫嚑涓煡璇嗙偣http://m.shnenglu.com/kenwell/archive/2010/06/25/118723.htmlc++ 瀛︿範c++ 瀛︿範Fri, 25 Jun 2010 08:35:00 GMThttp://m.shnenglu.com/kenwell/archive/2010/06/25/118723.htmlhttp://m.shnenglu.com/kenwell/comments/118723.htmlhttp://m.shnenglu.com/kenwell/archive/2010/06/25/118723.html#Feedback0http://m.shnenglu.com/kenwell/comments/commentRss/118723.htmlhttp://m.shnenglu.com/kenwell/services/trackbacks/118723.html鍑犱釜鐭ヨ瘑鐐?br style="word-wrap: break-word; line-height: normal; ">1.Bash鍦ㄥ疄鐜皃ipeline(綆¢亾|)鏃朵細鍙戣搗涓や釜subshell(瀛恠hell)鏉ヨ繍琛寍涓よ竟鐨?span href="tag.php?name=%C3%FC%C1%EE" class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap; ">鍛戒護錛屽浜?span href="tag.php?name=%CF%B5%CD%B3" class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap; ">緋葷粺鏉ヨ灝辨槸鍙戣搗涓や釜childprocess(瀛愯繘紼嬶級

2.fork鏄駭鐢焢rocess鐨勫敮涓閫斿緞錛宔xec*鏄墽琛岀▼搴忕殑鍞竴閫斿緞

3.瀛愯繘紼嬩細瀹屽叏澶嶅埗鐖惰繘紼嬶紝闄や簡$PID涓?PPID

4.fork瀛愯繘紼嬫椂緇ф壙鐖惰繘紼嬬殑榪涚▼鍚嶏紝鍦╡xec*鎵ц鍛戒護鏃舵墠鐢眅xec*鏇挎崲涓哄瓙榪涚▼瀵瑰簲鐨勫懡浠わ紝鍚屼竴榪涚▼鐨勫懡浠ゅ悕鍙互鐢變竴涓釜exec*浠繪剰澶氭鐨勬敼鍙?/strong>



[娉╙瀵逛簬linux騫沖彴錛孞B涓婂氨鏄繖鏍風殑錛屽叾瀹冨鉤鍙頒笉濂藉彂琛ㄦ剰瑙侊紝褰撶劧瀵逛簬2涓殑涓や釜鍞竴鏈変竴涓緥澶栵紝灝辨槸鍦╧enerl  init鐨勫垵鏈?
鏆傛椂鎵句笉鍒扮浉鍏沖弬鑰冿紝涔熸病鏈夊姛鍔涜婧愮爜錛屾墍浠ユ璁烘槸閬撳惉閫旇綰у埆錛岄敊璇箣澶勮鎸囧嚭鏀規錛屽鏋滄病鏈夋敼姝g殑浠峰煎彲涓絎戣岃繃

鎴戣寰楄鍏堝紕娓呮sub shell鐨勫畾涔夈?br style="word-wrap: break-word; line-height: normal; ">
鏌ヤ簡浜涜祫鏂欙紝鍙戠幇subshell鐨勫畾涔夋湁浜涙販涔便?br style="word-wrap: break-word; line-height: normal; ">bashMan:



QUOTE:
Each command in a pipeline is executed as a separate process (i.e., in a subshell).  




QUOTE:
When a simple command other than a builtin or shell function is to be executed, it is invoked in a
separate execution environment that consists of the following. Unless otherwise noted, the values are
inherited from the shell.



榪欎釜separate execution鏄痵ubshell鍚楋紵
A. 鍦ㄥ綋鍓峴hell鎵ц澶栭儴鍛戒護錛屽shell> date, 鏄痜ork+exec, 綆椾笉鏄痵ubshell? 
B. ()鏄痜ork涓涓猚hild shell錛岃child鍐峟ork+exec鏉ユ墽琛屽懡浠ゃ傝繖涓猻ubshell鍜孉涓殑"subshell"鏄劇劧鏄笉鍚岀殑銆?br style="word-wrap: break-word; line-height: normal; ">
UNIX: The Textbook, by Syed Mansoor Sarvar, Robert Koretsky and Syed Aqeel Sarvar涓彁鍒幫細


QUOTE:
A child shell is also called subshell


闂鏄痜ork+exec鏄痜ork涓涓猚hild shell錛岀劧鍚庡湪璇hild shell涓璭xec.
鑰屾墽琛岃剼鏈?shell>scriptname)鏃訛紝鏄痜ort涓涓猚hild shell A錛岃child shell A鍐峟ork涓涓猚hild shell B, 鍦˙涓啀exec.

閭d箞child shell鏄寚鍝鎯呭喌錛?br style="word-wrap: break-word; line-height: normal; ">


UNIX at Fermilab涓殑Important UNIX Concepts:



QUOTE:
When you give the shell a command associated with a compiled executable or shell script, the shell
creates, or forks, a new process called a subshell.


澶栭儴鍛戒護涔熷湪subshell涓墽琛屻?br style="word-wrap: break-word; line-height: normal; ">


QUOTE:
To execute most built-in commands, the shell forks a subshell which executes the command directly (no
exec system call). For the built-in commands cd, set, alias and source, the current shell executes the
command; no subshell is forked.



shell> built-inCommands榪欐牱鎵ц鏃訛紝澶ч儴鍒嗗唴閮ㄥ懡浠や篃鏄湪subshell涓墽琛屻?br style="word-wrap: break-word; line-height: normal; ">鍙錛孶NIX at Fermilab璁や負fork 涓涓猚hild shell灝辨槸subshell, 涓嶇鏄痜ork-fork+exec, 榪樻槸 fork+exec銆?br>
鎴戝垰鎵嶅張鍘葷炕浜嗕笅ABS錛屽畾涔変笌鎴戠殑鐞嗚В涓嶄竴鏍?br style="word-wrap: break-word; line-height: normal; ">

QUOTE:
A subshell is a separate instance of the command processor -- the shell that gives you the prompt at the
console or in an xterm window. Just as your commands are interpreted at the command line prompt, similarly
does a script batch-process a list of commands. Each shell script running is, in effect, a subprocess (child
process) of the parent shell.
./script涔熸槸external_cmd鐨勪竴縐嶅晩錛岄兘鏄痜ork-exec錛岃嚦浜巈xternal-cmd鍐嶄綔浠涔堝姩浣滃畬鍏ㄦ槸external-cmd鐨?/td>



]]>
shell metacharacters 涓嶪FS璁ㄨhttp://m.shnenglu.com/kenwell/archive/2010/06/25/118721.htmlc++ 瀛︿範c++ 瀛︿範Fri, 25 Jun 2010 08:29:00 GMThttp://m.shnenglu.com/kenwell/archive/2010/06/25/118721.htmlhttp://m.shnenglu.com/kenwell/comments/118721.htmlhttp://m.shnenglu.com/kenwell/archive/2010/06/25/118721.html#Feedback0http://m.shnenglu.com/kenwell/comments/commentRss/118721.htmlhttp://m.shnenglu.com/kenwell/services/trackbacks/118721.htmlgood job!
綹界畻鏈変漢鐪嬪緱鎳備簡銆?/span>

涓嶉亷錛岃绱拌鐨勮┍錛岃鎵笂 shell 鍦?interpret 涓鍊?command line 鏅傜殑 priority 銆?/span>
鍩烘湰涓婏紝鍏墮爢搴忓涓嬶細
1錛屽皣 line 鎷嗘垚 words 錛圛FS寰堥噸瑕侊級
2錛屾嫭灞?alias
3錛屾摯灞?锝?锝?/span>
4錛屾摯灞?~
5錛屾摯灞?$variable, $(command), `command`
6錛岄噸緄勫啀鎷嗘垚 words
7錛屾嫭灞?wildcards
8錛岃檿鐞?I/O redirection
9錛岃級鍏ュ懡浠ら亱琛?/span>
濡傛灉澶у鏈塐'Reilly鑻辨枃鐗堢殑 Learning the Bash(2nd)鐨勮┍錛岃珛澶氱瑭硃178鐨勫湒錛堢窗綃鐣ョ暟錛?/span>

鍥炲埌LZ鐨勫晱欏岋紝鐪嬩笂闈?5 璺?6 鐨勯爢搴忕劧寰屾墠鏄?9 銆?/span>
涔熷氨鏄湪 6 閲嶇祫鍛戒護鏅?$A 宸茬稉瀹屾垚鏇挎彌錛岀暥鏅傜殑 environment 鏄矑璩﹀鹼紝
鍥犳閲嶇祫寰屽氨鏄?A=B echo
鐒跺緦鍦ㄧ 9 鐨勬椹熼亱琛屽懡浠ゆ檪錛?A=B 鏄鄲 echo 鍛戒護鐨?local environment錛?/span>
涓嶇鏄惁 built-in command錛岄兘涓嶅獎闊跨暥鍓嶇殑 shell 錛堜笉鍚岀殑 shell 鍦ㄥ浣滀笂鎴栨湁宸暟錛?/span>
鎵浠ョ浜岃鐨?echo $A 涔熸槸寰楀埌娌掕腸鍊?/span>
鎴戦氳繃eval璇存槑璧嬪兼槸鎴愬姛鐨勶紝鑰屼笉鏄?5妤兼墍璇寸殑璧嬪間笉鎴愬姛銆?br style="word-wrap: break-word; line-height: normal; ">
絎竴姝ヤ嬌鐢?metacharacter錛屼笌IFS娌℃湁鍏崇郴

The following is a brief description of the shell's operation when it
reads and executes a command.  Basically, the shell does the following:

  1. Reads its input from a file (*note Shell Scripts::), from a string
     supplied as an argument to the `-c' invocation option (*note
     Invoking Bash::), or from the user's terminal.

  2. Breaks the input into words and operators, obeying the quoting
     rules described in *Note Quoting::.  These tokens are separated by
     `metacharacters'.  Alias expansion is performed by this step
     (*note Aliases::).
QUOTE:
`IFS'
     A list of characters that separate fields; used when the shell
     splits words as part of expansion.
`metacharacter'
     A character that, when unquoted, separates words.  A metacharacter
     is a `blank' or one of the following characters: `|', `&', `;',
     `(', `)', `<', or `>'.
8.05 鍛戒護琛岀殑璇勪環錛坋valuation錛?br style="word-wrap: break-word; line-height: normal; ">涓嬮潰鏄疌 shell 瑙i噴鍛戒護琛岀殑欏哄簭錛?br style="word-wrap: break-word; line-height: normal; ">1. 鍘嗗彶鏇挎崲
2. 鍒嗚璇嶏紙鍖呮嫭鐗規畩瀛楃錛?br style="word-wrap: break-word; line-height: normal; ">3. 鏇存柊鍘嗗彶琛?br style="word-wrap: break-word; line-height: normal; ">4. 瑙i噴鍗曞紩鍙鳳紙'錛?鍜?鍙屽紩鍙鳳紙"錛?br style="word-wrap: break-word; line-height: normal; ">5. 鍒悕鏇挎崲
6. 杈撳叆鍜岃緭鍑虹殑閲嶅畾鍚戯紙濡?>  < 鍜?|錛?br style="word-wrap: break-word; line-height: normal; ">7. 鍙橀噺鏇挎崲
8. 鍛戒護鏇挎崲
9. 鏂囦歡鍚嶆墿灞?br style="word-wrap: break-word; line-height: normal; ">錛圔ourne shell 鐨勮В閲婇『搴忔湰璐ㄤ笂鏄竴鏍風殑錛岄櫎浜嗗畠涓嶆墽琛屽巻鍙叉浛鎹㈠拰鍒悕鏇挎崲涔嬪錛?br style="word-wrap: break-word; line-height: normal; ">
鎵浠?br style="word-wrap: break-word; line-height: normal; ">A=B  echo    $A

鐨勬墽琛岃繃紼嬪簲璇ユ槸榪欐牱鐨勶細
1. 娌℃湁鍘嗗彶鎿嶄綔絎︼紝 鍥犳涓嶈繘琛屽巻鍙叉浛鎹紙Bourne shell 涓嶆墽琛岃繖涓姝ワ級
2. 鍒嗚璇嶏紝姣忕鍒版湭鍔犲紩鍙風殑絀虹櫧瀛楃灝變細浜х敓涓涓柊“璇?#8221;銆傝繖浜涜瘝鏄?A=B銆乪cho銆?A銆?br style="word-wrap: break-word; line-height: normal; ">3. shell 灝嗗懡浠よ鏀懼埌鍘嗗彶鍒楄〃涓傦紙Bourne shell 涓嶆墽琛岃繖涓姝ワ級
4. 娌℃湁寮曞彿闇瑕佽В閲?br style="word-wrap: break-word; line-height: normal; ">5. 娌℃湁鍒悕闇瑕佹浛鎹?br style="word-wrap: break-word; line-height: normal; ">6. 娌℃湁杈撳叆鎴栬緭鍑洪噸瀹氬悜闇瑕佸鐞?br style="word-wrap: break-word; line-height: normal; ">7. shell娉ㄦ剰鍒板彉閲?A錛屽茍鎶婂畠鏇挎崲鎴愮┖
8. shell瀵繪壘宸﹀崟寮曞彿錛屾墽琛屽乏鍗曞紩鍙蜂腑鐨勪換浣曞懡浠わ紝騫朵笖灝嗗懡浠ょ殑杈撳嚭鎻掑叆鍒板懡浠よ涓傚湪鏈緥涓紝娌℃湁榪欐柟闈㈢殑浜嬮渶瑕佸仛銆傦紙濡傛灉宸﹀崟寮曞彿鍐呮湁閫氶厤絎︽垨鑰呭彉閲忥紝閭d箞鍦╯hell榪愯宸﹀崟寮曞彿涓殑鍛戒護涔嬪墠瀹冧滑鏄笉浼氳瑙i噴鐨勶級
9. shell瀵繪壘閫氶厤絎︺傛湰渚嬩腑娌℃湁錛屼笉闇瑕佸鐞?br style="word-wrap: break-word; line-height: normal; ">10. shell 鎵ц A=B錛?鎵ц echo 銆?/span>
8.05 鍛戒護琛岀殑璇勪環錛坋valuation錛?br style="word-wrap: break-word; line-height: normal; ">涓嬮潰鏄疌 shell 瑙i噴鍛戒護琛岀殑欏哄簭錛?br style="word-wrap: break-word; line-height: normal; ">1. 鍘嗗彶鏇挎崲
2. 鍒嗚璇嶏紙鍖呮嫭鐗規畩瀛楃錛?br style="word-wrap: break-word; line-height: normal; ">3. 鏇存柊鍘嗗彶琛?br style="word-wrap: break-word; line-height: normal; ">4. 瑙i噴鍗曞紩鍙鳳紙'錛?鍜?鍙屽紩鍙鳳紙"錛?br style="word-wrap: break-word; line-height: normal; ">5. 鍒悕鏇挎崲
6. 杈撳叆鍜岃緭鍑虹殑閲嶅畾鍚戯紙濡?>  < 鍜?|錛?br style="word-wrap: break-word; line-height: normal; ">7. 鍙橀噺鏇挎崲
8. 鍛戒護鏇挎崲
9. 鏂囦歡鍚嶆墿灞?br style="word-wrap: break-word; line-height: normal; ">錛圔ourne shell 鐨勮В閲婇『搴忔湰璐ㄤ笂鏄竴鏍風殑錛岄櫎浜嗗畠涓嶆墽琛屽巻鍙叉浛鎹㈠拰鍒悕鏇挎崲涔嬪錛?br style="word-wrap: break-word; line-height: normal; ">
鎵浠?br style="word-wrap: break-word; line-height: normal; ">A=B  echo    $A

鐨勬墽琛岃繃紼嬪簲璇ユ槸榪欐牱鐨勶細
1. 娌℃湁鍘嗗彶鎿嶄綔絎︼紝 鍥犳涓嶈繘琛屽巻鍙叉浛鎹紙Bourne shell 涓嶆墽琛岃繖涓姝ワ級
2. 鍒嗚璇嶏紝姣忕鍒版湭鍔犲紩鍙風殑絀虹櫧瀛楃灝變細浜х敓涓涓柊“璇?#8221;銆傝繖浜涜瘝鏄?A=B銆乪cho銆?A銆?br style="word-wrap: break-word; line-height: normal; ">3. shell 灝嗗懡浠よ鏀懼埌鍘嗗彶鍒楄〃涓傦紙Bourne shell 涓嶆墽琛岃繖涓姝ワ級
4. 娌℃湁寮曞彿闇瑕佽В閲?br style="word-wrap: break-word; line-height: normal; ">5. 娌℃湁鍒悕闇瑕佹浛鎹?br style="word-wrap: break-word; line-height: normal; ">6. 娌℃湁杈撳叆鎴栬緭鍑洪噸瀹氬悜闇瑕佸鐞?br style="word-wrap: break-word; line-height: normal; ">7. shell娉ㄦ剰鍒板彉閲?A錛屽茍鎶婂畠鏇挎崲鎴愮┖
8. shell瀵繪壘宸﹀崟寮曞彿錛屾墽琛屽乏鍗曞紩鍙蜂腑鐨勪換浣曞懡浠わ紝騫朵笖灝嗗懡浠ょ殑杈撳嚭鎻掑叆鍒板懡浠よ涓傚湪鏈緥涓紝娌℃湁榪欐柟闈㈢殑浜嬮渶瑕佸仛銆傦紙濡傛灉宸﹀崟寮曞彿鍐呮湁閫氶厤絎︽垨鑰呭彉閲忥紝閭d箞鍦╯hell榪愯宸﹀崟寮曞彿涓殑鍛戒護涔嬪墠瀹冧滑鏄笉浼氳瑙i噴鐨勶級
9. shell瀵繪壘閫氶厤絎︺傛湰渚嬩腑娌℃湁錛屼笉闇瑕佸鐞?br style="word-wrap: break-word; line-height: normal; ">10. shell 鎵ц A=B錛?鎵ц echo 銆?/span>



]]>
BASH 涓殑瀛楃涓插鐞?/title><link>http://m.shnenglu.com/kenwell/archive/2010/06/22/118487.html</link><dc:creator>c++ 瀛︿範</dc:creator><author>c++ 瀛︿範</author><pubDate>Tue, 22 Jun 2010 10:44:00 GMT</pubDate><guid>http://m.shnenglu.com/kenwell/archive/2010/06/22/118487.html</guid><wfw:comment>http://m.shnenglu.com/kenwell/comments/118487.html</wfw:comment><comments>http://m.shnenglu.com/kenwell/archive/2010/06/22/118487.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/kenwell/comments/commentRss/118487.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/kenwell/services/trackbacks/118487.html</trackback:ping><description><![CDATA[<span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><div>鍘熸枃鍦板潃錛?a >http://bbs.chinaunix.net/thread-201843-1-1.html</a></div>寰楀埌闀垮害</span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><div id="hvzpftn" class="blockcode" style="word-wrap: break-word; line-height: normal; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 5px; padding-left: 10px; width: 586px; border-left-color: rgb(204, 204, 204); background-image: url(http://bbs.chinaunix.net/images/default/codebg.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(247, 247, 247); overflow-x: hidden; overflow-y: hidden; border-collapse: collapse; font-family: song, Verdana; font-size: 14px; background-position: 0px 0px; background-repeat: no-repeat repeat; "><div class="hvzpftn" id="code0" style="word-wrap: break-word; line-height: normal; "><ol style="word-wrap: break-word; line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%x="abcd"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">#鏂規硶涓<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr length $x<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">4<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; "># 鏂規硶浜?br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo ${#x}<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">4<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; "># 鏂規硶涓?br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr "$x" : ".*"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">4<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; "># expr 鐨勫府鍔?br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; "># STRING : REGEXP   anchored pattern match of REGEXP in STRING</li></ol></div><em style="word-wrap: break-word; text-align: left; font-style: normal; line-height: normal; margin-left: 43px; color: rgb(0, 0, 0); font-size: 12px; cursor: pointer; ">澶嶅埗浠g爜</em></div><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">鏌ユ壘瀛愪覆</span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><div id="hvzpftn" class="blockcode" style="word-wrap: break-word; line-height: normal; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 5px; padding-left: 10px; width: 586px; border-left-color: rgb(204, 204, 204); background-image: url(http://bbs.chinaunix.net/images/default/codebg.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(247, 247, 247); overflow-x: hidden; overflow-y: hidden; border-collapse: collapse; font-family: song, Verdana; font-size: 14px; background-position: 0px 0px; background-repeat: no-repeat repeat; "><div class="hvzpftn" id="code1" style="word-wrap: break-word; line-height: normal; "><ol style="word-wrap: break-word; line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr index  $x "b"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">2<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr index  $x "a"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">1<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr index  $x "b"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">2<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr index  $x "c"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">3<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr index  $x "d"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">4</li></ol></div><em style="word-wrap: break-word; text-align: left; font-style: normal; line-height: normal; margin-left: 43px; color: rgb(0, 0, 0); font-size: 12px; cursor: pointer; ">澶嶅埗浠g爜</em></div><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">寰楀埌瀛愬瓧絎︿覆</span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><div id="hvzpftn" class="blockcode" style="word-wrap: break-word; line-height: normal; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 5px; padding-left: 10px; width: 586px; border-left-color: rgb(204, 204, 204); background-image: url(http://bbs.chinaunix.net/images/default/codebg.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(247, 247, 247); overflow-x: hidden; overflow-y: hidden; border-collapse: collapse; font-family: song, Verdana; font-size: 14px; background-position: 0px 0px; background-repeat: no-repeat repeat; "><div class="hvzpftn" id="code2" style="word-wrap: break-word; line-height: normal; "><ol style="word-wrap: break-word; line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; "># 鏂規硶涓<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; "># expr <string> startpos length<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr substr "$x" 1 3<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">abc<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr substr "$x" 1 5<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">abcd<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr substr "$x" 2 5<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">bcd<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; "># 鏂規硶浜?br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; "># ${x:pos:lenght}<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo ${x:1}<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">bcd<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo ${x:2}<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">cd<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo ${x:0}<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">abcd<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo ${x:0:2}<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">ab<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%pos=1<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%len=2<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo ${x:$pos:$len}<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">bc</li></ol></div><em style="word-wrap: break-word; text-align: left; font-style: normal; line-height: normal; margin-left: 43px; color: rgb(0, 0, 0); font-size: 12px; cursor: pointer; ">澶嶅埗浠g爜</em></div><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">鍖歸厤姝e垯琛ㄨ揪寮?/span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><div id="hvzpftn" class="blockcode" style="word-wrap: break-word; line-height: normal; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 5px; padding-left: 10px; width: 586px; border-left-color: rgb(204, 204, 204); background-image: url(http://bbs.chinaunix.net/images/default/codebg.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(247, 247, 247); overflow-x: hidden; overflow-y: hidden; border-collapse: collapse; font-family: song, Verdana; font-size: 14px; background-position: 0px 0px; background-repeat: no-repeat repeat; "><div class="hvzpftn" id="code3" style="word-wrap: break-word; line-height: normal; "><ol style="word-wrap: break-word; line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; "># 鎵撳嵃鍖歸厤闀垮害<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr match $x "."<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">1<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr match $x "abc"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">3<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%expr match $x "bc"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">0</li></ol></div><em style="word-wrap: break-word; text-align: left; font-style: normal; line-height: normal; margin-left: 43px; color: rgb(0, 0, 0); font-size: 12px; cursor: pointer; ">澶嶅埗浠g爜</em></div><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">瀛楃涓茬殑鎺愬ご鍘誨熬</span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><div id="hvzpftn" class="blockcode" style="word-wrap: break-word; line-height: normal; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 5px; padding-left: 10px; width: 586px; border-left-color: rgb(204, 204, 204); background-image: url(http://bbs.chinaunix.net/images/default/codebg.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(247, 247, 247); overflow-x: hidden; overflow-y: hidden; border-collapse: collapse; font-family: song, Verdana; font-size: 14px; background-position: 0px 0px; background-repeat: no-repeat repeat; "><div class="hvzpftn" id="code4" style="word-wrap: break-word; line-height: normal; "><ol style="word-wrap: break-word; line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%x=aabbaarealwwvvww<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo "${x%w*w}"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">aabbaarealwwvv<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo "${x%%w*w}"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">aabbaareal<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo "${x##a*a}"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">lwwvvww<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo "${x#a*a}"<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">bbaarealwwvvww</li></ol></div><em style="word-wrap: break-word; text-align: left; font-style: normal; line-height: normal; margin-left: 43px; color: rgb(0, 0, 0); font-size: 12px; cursor: pointer; ">澶嶅埗浠g爜</em></div><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">鍏朵腑 , # 琛ㄧず鎺愬ご錛?鍥犱負閿洏涓?# 鍦?$ 鐨勫乏闈€?/span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">鍏朵腑 , % 琛ㄧず%錛?nbsp; 鍥犱負閿洏涓?% 鍦?$ 鐨勫彸闈€?/span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">鍗曚釜鐨勮〃紺烘渶灝忓尮閰嶏紝鍙屼釜琛ㄧず鏈澶у尮閰嶃?/span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">涔熷氨鏄錛屽綋鍖歸厤鐨勬湁澶氱</span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><span href="tag.php?name=%B7%BD%B0%B8" class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap; ">鏂規</span></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">鐨勬椂鍊欙紝閫夋嫨鍖歸厤鐨勬渶澶ч暱搴﹁繕鏄渶灝忛暱搴︺?/span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">瀛楃涓茬殑鏇挎崲</span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><div id="hvzpftn" class="blockcode" style="word-wrap: break-word; line-height: normal; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 5px; padding-left: 10px; width: 586px; border-left-color: rgb(204, 204, 204); background-image: url(http://bbs.chinaunix.net/images/default/codebg.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(247, 247, 247); overflow-x: hidden; overflow-y: hidden; border-collapse: collapse; font-family: song, Verdana; font-size: 14px; background-position: 0px 0px; background-repeat: no-repeat repeat; "><div class="hvzpftn" id="code5" style="word-wrap: break-word; line-height: normal; "><ol style="word-wrap: break-word; line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%x=abcdabcd<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo ${x/a/b} # 鍙浛鎹竴涓?br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">bbcdabcd<br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">%echo ${x//a/b} # 鏇挎崲鎵鏈?br style="word-wrap: break-word; line-height: normal; "></li><li style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; line-height: 1.8em; list-style-type: decimal-leading-zero; font-family: Monaco, Consolas, '"Lucida Console"', '"Courier New"', serif; font-size: 12px; ">bbcdbbcd</li></ol></div><em style="word-wrap: break-word; text-align: left; font-style: normal; line-height: normal; margin-left: 43px; color: rgb(0, 0, 0); font-size: 12px; cursor: pointer; ">澶嶅埗浠g爜</em></div><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">涓嶅彲浠ヤ嬌鐢?regexp 錛?鍙兘鐢?* ? 鐨?/span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><span href="tag.php?name=%CE%C4%BC%FE" class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap; ">鏂囦歡</span></span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; ">鎵╁睍鏂瑰紡銆?/span><span style="border-collapse: collapse; font-family: song, Verdana; font-size: 14px; line-height: 22px; "><br style="word-wrap: break-word; line-height: normal; "></span> <img src ="http://m.shnenglu.com/kenwell/aggbug/118487.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/kenwell/" target="_blank">c++ 瀛︿範</a> 2010-06-22 18:44 <a href="http://m.shnenglu.com/kenwell/archive/2010/06/22/118487.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <a href="http://m.shnenglu.com/">青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品</a> <div style="position:fixed;left:-9000px;top:-9000px;"><font id="pjuwb"></font><button id="pjuwb"><pre id="pjuwb"></pre></button><sub id="pjuwb"></sub><tbody id="pjuwb"><var id="pjuwb"><address id="pjuwb"></address></var></tbody><listing id="pjuwb"><label id="pjuwb"><strong id="pjuwb"></strong></label></listing><wbr id="pjuwb"><small id="pjuwb"><tbody id="pjuwb"></tbody></small></wbr><ins id="pjuwb"><xmp id="pjuwb"></xmp></ins><style id="pjuwb"></style><label id="pjuwb"><em id="pjuwb"><li id="pjuwb"></li></em></label><samp id="pjuwb"></samp><menu id="pjuwb"><input id="pjuwb"></input></menu><pre id="pjuwb"><tbody id="pjuwb"><tfoot id="pjuwb"><button id="pjuwb"></button></tfoot></tbody></pre><form id="pjuwb"></form><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"><sup id="pjuwb"></sup></label></style></i><li id="pjuwb"><table id="pjuwb"><abbr id="pjuwb"></abbr></table></li><video id="pjuwb"></video><dfn id="pjuwb"></dfn><progress id="pjuwb"></progress><strong id="pjuwb"></strong><mark id="pjuwb"></mark><em id="pjuwb"></em><tbody id="pjuwb"><p id="pjuwb"><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike></p></tbody><option id="pjuwb"></option><strike id="pjuwb"></strike><u id="pjuwb"></u><td id="pjuwb"><center id="pjuwb"><tr id="pjuwb"></tr></center></td><em id="pjuwb"><mark id="pjuwb"><em id="pjuwb"><tt id="pjuwb"></tt></em></mark></em><strong id="pjuwb"></strong><wbr id="pjuwb"></wbr><s id="pjuwb"></s><strong id="pjuwb"></strong><legend id="pjuwb"></legend><nav id="pjuwb"></nav><dl id="pjuwb"><th id="pjuwb"><dl id="pjuwb"></dl></th></dl><noframes id="pjuwb"><ins id="pjuwb"></ins></noframes><font id="pjuwb"></font><strike id="pjuwb"><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"></label></style></i></strike><output id="pjuwb"></output><thead id="pjuwb"><pre id="pjuwb"></pre></thead><source id="pjuwb"></source><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem><pre id="pjuwb"><span id="pjuwb"><pre id="pjuwb"><big id="pjuwb"></big></pre></span></pre><cite id="pjuwb"><fieldset id="pjuwb"><s id="pjuwb"><rt id="pjuwb"></rt></s></fieldset></cite><big id="pjuwb"><progress id="pjuwb"><big id="pjuwb"></big></progress></big><samp id="pjuwb"><delect id="pjuwb"></delect></samp><dl id="pjuwb"></dl><strike id="pjuwb"><nav id="pjuwb"><dl id="pjuwb"><strong id="pjuwb"></strong></dl></nav></strike><tbody id="pjuwb"><b id="pjuwb"><optgroup id="pjuwb"><rp id="pjuwb"></rp></optgroup></b></tbody><em id="pjuwb"></em><xmp id="pjuwb"><blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote></xmp> <i id="pjuwb"><abbr id="pjuwb"><i id="pjuwb"><abbr id="pjuwb"></abbr></i></abbr></i><center id="pjuwb"><acronym id="pjuwb"><center id="pjuwb"></center></acronym></center><pre id="pjuwb"></pre><ul id="pjuwb"><thead id="pjuwb"></thead></ul><blockquote id="pjuwb"><pre id="pjuwb"><sup id="pjuwb"></sup></pre></blockquote><acronym id="pjuwb"></acronym><big id="pjuwb"><s id="pjuwb"></s></big><th id="pjuwb"></th><th id="pjuwb"></th><tbody id="pjuwb"></tbody><thead id="pjuwb"><strike id="pjuwb"></strike></thead><th id="pjuwb"><dl id="pjuwb"><wbr id="pjuwb"></wbr></dl></th><dl id="pjuwb"><strong id="pjuwb"></strong></dl><abbr id="pjuwb"><noframes id="pjuwb"><noscript id="pjuwb"></noscript></noframes></abbr><td id="pjuwb"><ol id="pjuwb"></ol></td><li id="pjuwb"><noscript id="pjuwb"><abbr id="pjuwb"></abbr></noscript></li><small id="pjuwb"><bdo id="pjuwb"><nav id="pjuwb"></nav></bdo></small><style id="pjuwb"></style><optgroup id="pjuwb"><table id="pjuwb"></table></optgroup><center id="pjuwb"><tr id="pjuwb"><dfn id="pjuwb"></dfn></tr></center><th id="pjuwb"></th><u id="pjuwb"></u><tfoot id="pjuwb"><legend id="pjuwb"><i id="pjuwb"></i></legend></tfoot><mark id="pjuwb"></mark><meter id="pjuwb"></meter><nav id="pjuwb"></nav><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><nobr id="pjuwb"></nobr><sub id="pjuwb"><th id="pjuwb"><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem></th></sub><thead id="pjuwb"><sub id="pjuwb"></sub></thead><ul id="pjuwb"><address id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></address></ul><dfn id="pjuwb"></dfn><pre id="pjuwb"></pre><input id="pjuwb"><cite id="pjuwb"><fieldset id="pjuwb"></fieldset></cite></input><u id="pjuwb"><form id="pjuwb"><u id="pjuwb"></u></form></u><kbd id="pjuwb"><em id="pjuwb"><mark id="pjuwb"></mark></em></kbd><tr id="pjuwb"></tr><del id="pjuwb"><form id="pjuwb"><address id="pjuwb"></address></form></del><tfoot id="pjuwb"><legend id="pjuwb"><ol id="pjuwb"><dl id="pjuwb"></dl></ol></legend></tfoot><menu id="pjuwb"><nobr id="pjuwb"><th id="pjuwb"><nobr id="pjuwb"></nobr></th></nobr></menu><fieldset id="pjuwb"></fieldset><pre id="pjuwb"><blockquote id="pjuwb"><samp id="pjuwb"></samp></blockquote></pre><xmp id="pjuwb"><sup id="pjuwb"><pre id="pjuwb"></pre></sup></xmp><span id="pjuwb"><progress id="pjuwb"></progress></span><font id="pjuwb"></font><var id="pjuwb"><abbr id="pjuwb"></abbr></var><strong id="pjuwb"><label id="pjuwb"><i id="pjuwb"><legend id="pjuwb"></legend></i></label></strong><tr id="pjuwb"><em id="pjuwb"><em id="pjuwb"><output id="pjuwb"></output></em></em></tr><thead id="pjuwb"><strike id="pjuwb"></strike></thead> <acronym id="pjuwb"></acronym><i id="pjuwb"></i><tt id="pjuwb"></tt><rt id="pjuwb"><source id="pjuwb"><rt id="pjuwb"></rt></source></rt><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike><del id="pjuwb"></del><font id="pjuwb"><output id="pjuwb"><ins id="pjuwb"><output id="pjuwb"></output></ins></output></font><kbd id="pjuwb"><tr id="pjuwb"><kbd id="pjuwb"></kbd></tr></kbd><pre id="pjuwb"><sup id="pjuwb"><delect id="pjuwb"><samp id="pjuwb"></samp></delect></sup></pre><samp id="pjuwb"></samp><track id="pjuwb"></track><tr id="pjuwb"></tr><center id="pjuwb"></center><fieldset id="pjuwb"></fieldset><i id="pjuwb"></i><td id="pjuwb"></td><rt id="pjuwb"></rt><object id="pjuwb"></object><pre id="pjuwb"><progress id="pjuwb"><sub id="pjuwb"><thead id="pjuwb"></thead></sub></progress></pre><kbd id="pjuwb"><tr id="pjuwb"><option id="pjuwb"></option></tr></kbd><output id="pjuwb"><ins id="pjuwb"></ins></output><ol id="pjuwb"></ol><source id="pjuwb"></source><strong id="pjuwb"></strong><ruby id="pjuwb"></ruby><sub id="pjuwb"><meter id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></meter></sub><pre id="pjuwb"></pre><center id="pjuwb"></center><tr id="pjuwb"><tbody id="pjuwb"><xmp id="pjuwb"><dd id="pjuwb"></dd></xmp></tbody></tr><video id="pjuwb"></video><pre id="pjuwb"></pre><form id="pjuwb"><optgroup id="pjuwb"></optgroup></form><samp id="pjuwb"></samp><kbd id="pjuwb"></kbd><strong id="pjuwb"><option id="pjuwb"></option></strong><object id="pjuwb"></object><abbr id="pjuwb"><noframes id="pjuwb"><abbr id="pjuwb"></abbr></noframes></abbr><ul id="pjuwb"><del id="pjuwb"><button id="pjuwb"><pre id="pjuwb"></pre></button></del></ul><abbr id="pjuwb"></abbr><strong id="pjuwb"><code id="pjuwb"><strong id="pjuwb"></strong></code></strong><option id="pjuwb"></option><optgroup id="pjuwb"><bdo id="pjuwb"><code id="pjuwb"></code></bdo></optgroup><mark id="pjuwb"><em id="pjuwb"><font id="pjuwb"></font></em></mark><acronym id="pjuwb"><code id="pjuwb"></code></acronym><dl id="pjuwb"></dl><em id="pjuwb"></em><object id="pjuwb"><input id="pjuwb"><object id="pjuwb"></object></input></object><output id="pjuwb"><dd id="pjuwb"></dd></output><option id="pjuwb"><button id="pjuwb"><option id="pjuwb"></option></button></option><small id="pjuwb"></small></div> <a href="http://609005.com" target="_blank">久久精品中文字幕免费mv</a>| <a href="http://1616mz.com" target="_blank">校园春色国产精品</a>| <a href="http://filmcameralibrary.com" target="_blank">日韩视频一区二区在线观看 </a>| <a href="http://yw6632.com" target="_blank">国产精品一级久久久</a>| <a href="http://www94816.com" target="_blank">国产精品久久久久久久久免费</a>| <a href="http://51120guahao.com" target="_blank">国产精品成人在线</a>| <a href="http://o74sokyoss.com" target="_blank">国产亚洲精品久久久久婷婷瑜伽</a>| <a href="http://www387333.com" target="_blank">国内精品久久久久影院色</a>| <a href="http://133969.com" target="_blank">亚洲高清视频的网址</a>| <a href="http://9928k.com" target="_blank">99精品视频免费在线观看</a>| <a href="http://www18889.com" target="_blank">亚洲综合首页</a>| <a href="http://301110.com" target="_blank">免费高清在线视频一区·</a>| <a href="http://152mu.com" target="_blank">亚洲欧洲偷拍精品</a>| <a href="http://bjrailtech.com" target="_blank">一区二区三区成人</a>| <a href="http://9924338.com" target="_blank">久久成人羞羞网站</a>| <a href="http://gykfqzgpt.com" target="_blank">欧美电影免费观看高清</a>| <a href="http://roujizz.com" target="_blank">国产精品伦理</a>| <a href="http://hhsj31.com" target="_blank">日韩视频免费观看高清在线视频</a>| <a href="http://6966g.com" target="_blank">亚洲欧美日韩网</a>| <a href="http://023nszz.com" target="_blank">欧美成熟视频</a>| <a href="http://3534m.com" target="_blank">午夜激情亚洲</a>| <a href="http://sese135.com" target="_blank">欧美日韩国产综合视频在线</a>| <a href="http://wg246.com" target="_blank">国产婷婷色综合av蜜臀av</a>| <a href="http://musicshq.com" target="_blank">亚洲精品久久久久久久久久久 </a>| <a href="http://5773000.com" target="_blank">亚洲国产精品久久久久秋霞不卡 </a>| <a href="http://coerverbeijing.com" target="_blank">91久久夜色精品国产网站</a>| <a href="http://clgtzz.com" target="_blank">国产亚洲成年网址在线观看</a>| <a href="http://zhuankee.com" target="_blank">在线日韩av</a>| <a href="http://5757ff.com" target="_blank">亚洲视频观看</a>| <a href="http://www0505nn.com" target="_blank">美女爽到呻吟久久久久</a>| <a href="http://86868o.com" target="_blank">亚洲视频一二区</a>| <a href="http://511caifu.com" target="_blank">欧美大片在线观看一区</a>| <a href="http://8eb26.com" target="_blank">国产三级欧美三级</a>| <a href="http://jilcool.com" target="_blank">亚洲一区二区三区免费视频</a>| <a href="http://456316.com" target="_blank">亚洲成色最大综合在线</a>| <a href="http://517hc5.com" target="_blank">欧美一区二区三区久久精品茉莉花 </a>| <a href="http://ywy99.com" target="_blank">一区二区激情</a>| <a href="http://8x1080x.com" target="_blank">男人的天堂亚洲在线</a>| <a href="http://weixiao668.com" target="_blank">亚洲在线一区二区</a>| <a href="http://www633998.com" target="_blank">欧美精品三级日韩久久</a>| <a href="http://xiangshi888.com" target="_blank">在线看日韩欧美</a>| <a href="http://4488269.com" target="_blank">久久久久久夜</a>| <a href="http://69xxx6.com" target="_blank">欧美一区二区视频在线</a>| <a href="http://anquye16.com" target="_blank">欧美午夜不卡影院在线观看完整版免费 </a>| <a href="http://quoviajes.com" target="_blank">免费观看30秒视频久久</a>| <a href="http://jafzjz.com" target="_blank">国产亚洲福利社区一区</a>| <a href="http://kuaikan97.com" target="_blank">亚洲欧美福利一区二区</a>| <a href="http://whdzjc.com" target="_blank">日韩一级片网址</a>| <a href="http://www-85489.com" target="_blank">欧美精品一区三区</a>| <a href="http://yeyesaoqi.com" target="_blank">亚洲毛片在线</a>| <a href="http://diao66.com" target="_blank">亚洲肉体裸体xxxx137</a>| <a href="http://my736.com" target="_blank">欧美va日韩va</a>| <a href="http://weixiao668.com" target="_blank">亚洲精品日韩一</a>| <a href="http://56myf.com" target="_blank">欧美激情精品久久久久久蜜臀</a>| <a href="http://fdgkinetic.com" target="_blank">欧美一区深夜视频</a>| <a href="http://x1317.com" target="_blank">国产亚洲a∨片在线观看</a>| <a href="http://www666se.com" target="_blank">欧美亚洲免费高清在线观看</a>| <a href="http://www-485050.com" target="_blank">制服诱惑一区二区</a>| <a href="http://92xx00.com" target="_blank">国产精品乱看</a>| <a href="http://842332.com" target="_blank">欧美在线一级视频</a>| <a href="http://850cn.com" target="_blank">欧美一区二区三区四区在线观看地址 </a>| <a href="http://by21999.com" target="_blank">亚洲欧美中文另类</a>| <a href="http://520844www.com" target="_blank">国产乱肥老妇国产一区二</a>| <a href="http://www55747.com" target="_blank">午夜宅男久久久</a>| <a href="http://621768.com" target="_blank">性欧美长视频</a>| <a href="http://9a5x.com" target="_blank">伊人久久亚洲热</a>| <a href="http://666777v3.com" target="_blank">欧美激情在线狂野欧美精品</a>| <a href="http://06le.com" target="_blank">欧美精品亚洲一区二区在线播放</a>| <a href="http://gs-qintai.com" target="_blank">亚洲日本免费</a>| <a href="http://bocai01.com" target="_blank">亚洲精品一区二区在线</a>| <a href="http://go1818.com" target="_blank">欧美三级在线播放</a>| <a href="http://dgxinshidai.com" target="_blank">亚洲欧美另类中文字幕</a>| <a href="http://mauhorng.com" target="_blank">午夜精品国产更新</a>| <a href="http://bbww55.com" target="_blank">狠狠爱综合网</a>| <a href="http://sese699.com" target="_blank">91久久综合亚洲鲁鲁五月天</a>| <a href="http://f9494.com" target="_blank">欧美日韩国产成人在线免费</a>| <a href="http://jdss777.com" target="_blank">亚洲一区二区高清视频</a>| <a href="http://yw5531.com" target="_blank">日韩视频在线观看</a>| <a href="http://lianjiemenye.com" target="_blank">99在线|亚洲一区二区</a>| <a href="http://www-55125.com" target="_blank">久久国产精品黑丝</a>| <a href="http://ynjzwh.com" target="_blank">在线观看三级视频欧美</a>| <a href="http://498626.com" target="_blank">亚洲电影在线</a>| <a href="http://taoh228.com" target="_blank">国产精品乱子乱xxxx</a>| <a href="http://qiansemf.com" target="_blank">久久婷婷国产综合国色天香</a>| <a href="http://287975.com" target="_blank">麻豆精品视频</a>| <a href="http://dd8uau0ncu.com" target="_blank">亚洲综合99</a>| <a href="http://zzzz91.com" target="_blank">久久久噜噜噜</a>| <a href="http://3848404.com" target="_blank">亚洲一区二区精品</a>| <a href="http://www-yh6.com" target="_blank">久久国产精品一区二区三区</a>| <a href="http://ddixx.com" target="_blank">亚洲黄一区二区三区</a>| <a href="http://gzpurefaith.com" target="_blank">一区二区三区欧美亚洲</a>| <a href="http://epiegame.com" target="_blank">狠狠色狠色综合曰曰</a>| <a href="http://szxrdr.com" target="_blank">亚洲精品久久久久</a>| <a href="http://y8e8.com" target="_blank">国产一区二区按摩在线观看</a>| <a href="http://cp50088.com" target="_blank">亚洲国产高清在线</a>| <a href="http://830085.com" target="_blank">国产欧美精品</a>| <a href="http://bjrailtech.com" target="_blank">亚洲国产毛片完整版</a>| <a href="http://dmzjz.com" target="_blank">国产精品热久久久久夜色精品三区</a>| <a href="http://4449992.com" target="_blank">久久久视频精品</a>| <a href="http://bixiuge.com" target="_blank">欧美日韩国产首页</a>| <a href="http://xissy.com" target="_blank">玖玖玖国产精品</a>| <a href="http://fsdashen.com" target="_blank">国产精品国产精品</a>| <a href="http://ccnn33.com" target="_blank">欧美大片在线影院</a>| <a href="http://wwwsfsf11.com" target="_blank">国产精品久久久久久妇女6080 </a>| <a href="http://xprinter3d.com" target="_blank">国产精品国产成人国产三级</a>| <a href="http://483134.com" target="_blank">久久一区二区三区av</a>| <a href="http://zgztby.com" target="_blank">欧美日韩亚洲国产精品</a>| <a href="http://8p3c.com" target="_blank">麻豆精品精品国产自在97香蕉</a>| <a href="http://chufengguanye.com" target="_blank">欧美精品在欧美一区二区少妇</a>| <a href="http://677679.com" target="_blank">久久久久久欧美</a>| <a href="http://3dmh329.com" target="_blank">国产精品久久波多野结衣</a>| <a href="http://aqdit2022.com" target="_blank">欧美成人a视频</a>| <a href="http://457745.com" target="_blank">国产一区二区日韩</a>| <a href="http://ynzhuoyi.com" target="_blank">一区二区三区成人</a>| <a href="http://123yongjiu.com" target="_blank">亚洲欧洲在线免费</a>| <a href="http://huayoue.com" target="_blank">久久精品视频导航</a>| <a href="http://17kfe.com" target="_blank">久久精品国产成人</a>| <a href="http://6966g.com" target="_blank">国产精品女主播在线观看</a>| <a href="http://cecelife.com" target="_blank">亚洲啪啪91</a>| <a href="http://hicao32.com" target="_blank">亚洲国产另类久久久精品极度</a>| <a href="http://luobu520.com" target="_blank">亚洲欧美日韩区</a>| <a href="http://aqdav81.com" target="_blank">亚洲免费在线精品一区</a>| <a href="http://www90aaa.com" target="_blank">欧美—级a级欧美特级ar全黄</a>| <a href="http://638179.com" target="_blank">久热精品在线视频</a>| <a href="http://5757ff.com" target="_blank">激情久久久久久</a>| <a href="http://951738.com" target="_blank">久久狠狠婷婷</a>| <a href="http://birhit.com" target="_blank">久久亚洲国产精品一区二区</a>| <a href="http://arielteam.com" target="_blank">国产日韩一区二区三区</a>| <a href="http://iamsleekcn.com" target="_blank">在线中文字幕一区</a>| <a href="http://wzxjzx.com" target="_blank">亚洲免费网址</a>| <a href="http://wwwnnnn.com" target="_blank">国产精品九九久久久久久久</a>| <a href="http://787622.com" target="_blank">一区二区三区蜜桃网</a>| <a href="http://javdb04.com" target="_blank">亚洲网站在线</a>| <a href="http://cn1357.com" target="_blank">欧美国产精品va在线观看</a>| <a href="http://www442222.com" target="_blank">欧美激情中文不卡</a>| <a href="http://645955.com" target="_blank">欧美日韩一区高清</a>| <a href="http://hbzbjxzz.com" target="_blank">性做久久久久久久久</a>| <a href="http://vvvv81.com" target="_blank">最新69国产成人精品视频免费</a>| <a href="http://wwwmy77757.com" target="_blank">国产在线精品二区</a>| <a href="http://xaxkizlar.com" target="_blank">欧美亚洲综合另类</a>| <a href="http://ncncpa.com" target="_blank">欧美在线观看你懂的</a>| <a href="http://wg135.com" target="_blank">国产精品久久看</a>| <a href="http://huaihuaihuai.com" target="_blank">亚洲视频一区二区免费在线观看</a>| <a href="http://wwwby113.com" target="_blank">亚洲午夜91</a>| <a href="http://fdgkinetic.com" target="_blank">国产精品久久久久av免费</a>| <a href="http://486be.com" target="_blank">亚洲免费在线</a>| <a href="http://azaz7.com" target="_blank">美女被久久久</a>| <a href="http://3dxxoo.com" target="_blank">日韩视频一区</a>| <a href="http://749996.com" target="_blank">国产精品进线69影院</a>| <a href="http://yp77741.com" target="_blank">午夜精品久久久久久久蜜桃app</a>| <a href="http://spvicarb.com" target="_blank">欧美在线免费看</a>| <a href="http://91pero.com" target="_blank">依依成人综合视频</a>| <a href="http://cloakok.com" target="_blank">女生裸体视频一区二区三区</a>| <a href="http://833816.com" target="_blank">亚洲黄网站黄</a>| <a href="http://1332233.com" target="_blank">亚洲欧美日韩在线高清直播</a>| <a href="http://mgcc37.com" target="_blank">国产日产高清欧美一区二区三区</a>| <a href="http://senlin86.com" target="_blank">久久se精品一区精品二区</a>| <a href="http://bosengame.com" target="_blank">免费欧美在线视频</a>| <a href="http://cnbluebox.com" target="_blank">日韩写真在线</a>| <a href="http://caopormo.com" target="_blank">国产精品尤物</a>| <a href="http://pppp95.com" target="_blank">美国十次成人</a>| <a href="http://7a7d.com" target="_blank">亚洲无限av看</a>| <a href="http://548710.com" target="_blank">欧美国产成人在线</a>| <a href="http://gaysexcube.com" target="_blank">亚洲视频在线一区</a>| <a href="http://hg98688.com" target="_blank">国内精品久久久久久久果冻传媒</a>| <a href="http://www24822.com" target="_blank">另类专区欧美制服同性</a>| <a href="http://wzsl8.com" target="_blank">亚洲激情网站</a>| <a href="http://862323.com" target="_blank">欧美在线1区</a>| <a href="http://jxjx11.com" target="_blank">亚洲人成毛片在线播放</a>| <a href="http://18mmcg.com" target="_blank">国产精品户外野外</a>| <a href="http://77017w.com" target="_blank">老司机精品视频网站</a>| <a href="http://www37999.com" target="_blank">99精品欧美一区二区三区 </a>| <a href="http://hbzbjxzz.com" target="_blank">久久女同互慰一区二区三区</a>| <a href="http://wanshunpu.com" target="_blank">久久亚洲精品中文字幕冲田杏梨 </a>| <a href="http://994745.com" target="_blank">国产精品久久久久久妇女6080 </a>| <a href="http://833077.com" target="_blank">亚洲国产欧美一区</a>| <a href="http://ynjzwh.com" target="_blank">亚洲——在线</a>| <a href="http://042455.com" target="_blank">一本一本久久a久久精品牛牛影视</a>| <a href="http://xvideoxxnx.com" target="_blank">亚洲欧美另类在线</a>| <a href="http://b1768.com" target="_blank">亚洲一区二区少妇</a>| <a href="http://my777752.com" target="_blank">久久久久久自在自线</a>| <a href="http://3374com.com" target="_blank">一区二区三区欧美</a>| <a href="http://15013010203.com" target="_blank">久久高清福利视频</a>| <a href="http://phdy999.com" target="_blank">久久精品日韩欧美</a>| <a href="http://99chiji1.com" target="_blank">国产日韩在线看</a>| <a href="http://876769.com" target="_blank">亚洲影视综合</a>| <a href="http://123273.com" target="_blank">国产日韩欧美在线</a>| <a href="http://567acg.com" target="_blank">久久久av毛片精品</a>| <a href="http://am3757.com" target="_blank">欧美精彩视频一区二区三区</a>| <a href="http://www36633.com" target="_blank">日韩一级网站</a>| <a href="http://626tw.com" target="_blank">狠狠狠色丁香婷婷综合激情</a>| <a href="http://ssss96.com" target="_blank">欧美日本不卡高清</a>| <a href="http://yw3329.com" target="_blank">国产精品www</a>| <a href="http://sauske.com" target="_blank">国产视频在线观看一区</a>| <a href="http://313cq.com" target="_blank">欧美xx69</a>| <a href="http://ooo789.com" target="_blank">久久av一区</a>| <a href="http://2387463.com" target="_blank">亚洲欧美日韩精品</a>| <a href="http://www-85489.com" target="_blank">夜夜嗨一区二区</a>| <a href="http://sz-jyqj.com" target="_blank">亚洲第一中文字幕</a>| <a href="http://5yy6.com" target="_blank">免费不卡视频</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>