<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[阿Tim日志]]></title> 
<link>https://atim.cn/index.php</link> 
<description><![CDATA[专业的php开发者.开发团队的带队人]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[阿Tim日志]]></copyright>
<item>
<link>https://atim.cn/post//</link>
<title><![CDATA[linux下快速查找文件带到指定内容的文件]]></title> 
<author>bkkkd &lt;partybase@gmail.com&gt;</author>
<category><![CDATA[开发应用]]></category>
<pubDate>Sun, 25 Dec 2011 09:14:28 +0000</pubDate> 
<guid>https://atim.cn/post//</guid> 
<description>
<![CDATA[ 
	在windows下我习惯于使用<a href="http://www.funduc.com/search_replace.htm" target="_blank">search and replace</a>软件进行搜索文件中是否存在某个字符串.<br/>现在在linux下也能这样操作了.将以下代码保存为searchcontent.sh<br/><div class="code">find $1 -iname &quot;$2&quot;&#124;while read filename<br/>do<br/>&nbsp;&nbsp;&nbsp;&nbsp;code=`cat $filename &#124;grep $3 -nr`<br/>&nbsp;&nbsp;&nbsp;&nbsp;if &#91; &quot;$code&quot; != &quot;&quot; &#93;;then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo $filename<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo $code<br/>&nbsp;&nbsp;&nbsp;&nbsp;fi<br/>done&#124;more</div><br/>设置searchcontent.sh为可执行<br/><div class="code">chmod +x ./searchcontent.sh</div><br/>使用该脚本搜索文件<br/><div class="code">./s.sh /www/238000_net/ &quot;*.php&quot; &quot;eval&quot;</div><br/>搜索/www/目录下的后缀为php的文件中是否存在eval字符串,如果存在输出文件名及代码的内容
]]>
</description>
</item><item>
<link>https://atim.cn/post//#blogcomment</link>
<title><![CDATA[[评论] linux下快速查找文件带到指定内容的文件]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://atim.cn/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>