<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]awk内置的字符串处理函数，AWK字符串判断用双引号。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Mon, 23 Aug 2010 10:48:09 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	AWK的字符串判断比较一定要用双引号，单引号不行，如下：<br/><textarea name="code" class="php" rows="15" cols="100">
 mysql -e &quot;show processlist&quot;&#124;awk &#039;&#123;if($5 == &quot;Sleep&quot;) print $1 &#125;&#039;&nbsp;&nbsp;
4516366
30207389
30207639
30207640
30208142
</textarea><br/><br/>mysql -e &quot;show processlist&quot;&#124;awk &#039;/30207639/&#039;<br/>30207639&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;baige&nbsp;&nbsp; 192.168.111.61:5012&nbsp;&nbsp;&nbsp;&nbsp; baige&nbsp;&nbsp; Sleep&nbsp;&nbsp; 233&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL<br/><br/><br/>sub(/reg/,newsubstr,str)<br/>只替换第一个匹配字符串<br/><br/>gsub(/reg/,newsubstr,str)<br/>替换字符串str中所有的符合/reg/正则的子串替换为字符串newsubstr<br/><br/>index(str,substr);<br/>返回子串substr在串str中的索引<br/><br/>length(str)<br/>返回字符串的长度<br/><br/>match(str,/reg/)<br/>如果在串str中找到正则/reg/匹配的串则返回出现的位置,未找到则返回0<br/><br/>split(str,array,sep)<br/>使用分隔符sep把字符串分解成数组array<br/><br/>substr(str,position[,length])<br/>返回str中从position开始的length个字符<br/><br/>tolower(str)<br/>toupper(str)<br/>把字符串进行大小写<br/><br/>来源：http://hi.baidu.com/tengteng2007/blog/item/6b4c1d089d4bcdd963d98664.html
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]awk内置的字符串处理函数，AWK字符串判断用双引号。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>