<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.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://www.jackxiang.com/post//</link>
<title><![CDATA[linux下遍历查找指定文件夹下的文件名，find+grep配合查找包含某字符串的文件并显示行号。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Thu, 04 Dec 2008 07:36:04 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	1)linux下查找指定文件名:<br/>find PATH -type f -name &quot;aaa.txt&quot;<br/><textarea name="code" class="php" rows="15" cols="100">
[root@iZ25z0ugwgtZ /]# find / -type f -name &quot;mysql&quot;
/usr/bin/mysql
</textarea><br/><br/>2)find+grep配合查找包含某字符串的文件并显示行号:<br/>#&gt; find . -type f&nbsp;&nbsp;-exec grep &#039;mingtian&#039;&nbsp;&nbsp;-l &#123;&#125; &#92;;<br/>grep -l :是显示匹配的内容的文件名字！<br/>或者：<br/>#&gt; find . -type f -name &quot;*.*&quot; &amp;#124;xargs grep &#039;xiaoshou&#039; -l<br/>(这个方法 不好，挺乱的，还慢，推荐前一个方法！）<br/><br/>such as :<br/>find . -type f -name &quot;*.php&quot;&amp;#124;xargs grep -in &quot;date&quot; -R
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] linux下遍历查找指定文件夹下的文件名，find+grep配合查找包含某字符串的文件并显示行号。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>