<?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[find 命令查找不包含的目录和文件]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Thu, 25 Aug 2011 15:59:56 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	find命令常用来查找特定目录下，所有相关文件，可是也经常要排除特定内容的文件/目录，比如不想看svn/cvs的系统文件目录，如何做到呢，明显-name不能解决问题，但是可以用find 的 -not参数，比如查找不包含.svn的所有文件：<br/>代码:去SVN目录：<br/><textarea name="code" class="php" rows="15" cols="100">
find . -type d&nbsp;&nbsp;! -wholename&nbsp;&nbsp;&#039;.svn&#039;
</textarea><br/><br/>法一：<br/><textarea name="code" class="html" rows="15" cols="100">
&nbsp;&nbsp;&nbsp;&nbsp;find . -not -wholename&nbsp;&nbsp;&#039;*.svn*&#039; -print 
</textarea><br/>法二：<br/><textarea name="code" class="html" rows="15" cols="100">
&nbsp;&nbsp;&nbsp;&nbsp;find .&nbsp;&nbsp;! -wholename&nbsp;&nbsp;&#039;*.svn*&#039; -print 
</textarea><br/><br/>再者find经常结合xargs处理复杂的功能。<br/><br/>示例：<br/><textarea name="code" class="html" rows="15" cols="100">
bogon:/home/jackxiang/find # find .&nbsp;&nbsp;-not -wholename&nbsp;&nbsp;&#039;*.svn*&#039; 
.
./cc
./cc/cc.txt
./aaa
./bbb
./svn
./svn/svn.txt
bogon:/home/jackxiang/find # find .&nbsp;&nbsp;-not -wholename&nbsp;&nbsp;&#039;svn&#039;&nbsp;&nbsp;&nbsp;&nbsp;
.
./cc
./cc/cc.txt
./aaa
./bbb
./svn
./svn/svn.txt
./.svn
./.svn/jacksvn.txt
./aaa.svn
</textarea><br/><br/>常用find：<br/>查找文件中某个字串：<br/><textarea name="code" class="html" rows="15" cols="100">
find . -type f -name &quot;*.php&quot;&#124;xargs grep -in &quot;date&quot; -R 
</textarea>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] find 命令查找不包含的目录和文件]]></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>