<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>search &#8211; VeriTeknik</title>
	<atom:link href="https://www.veriteknik.net.tr/en/tag/search/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.veriteknik.net.tr/en/</link>
	<description>VeriTeknik Bilişim &#124; VeriTeknik Bilişim</description>
	<lastBuildDate>Sat, 23 Apr 2011 22:57:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Linux Recursive Search inside files</title>
		<link>https://www.veriteknik.net.tr/en/linux-recursive-search-inside-files/</link>
					<comments>https://www.veriteknik.net.tr/en/linux-recursive-search-inside-files/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Sat, 23 Apr 2011 22:57:23 +0000</pubDate>
				<category><![CDATA[LINUX Help]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[search]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=48</guid>

					<description><![CDATA[<p>You can make a search inside files within a a directory using the command &#8220;find&#8220;, to do that: with the find command cd /to_folder find . -iname &#8216;*conf&#8217; &#124; xargs grep &#8216;string&#8217; -sl -iname &#8216;*conf&#8217; states that the seach will only check the files ending with *conf, using -iname &#8216;*&#8217; will search inside all the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/linux-recursive-search-inside-files/">Linux Recursive Search inside files</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>You can make a search inside files within a a directory using the command &#8220;<strong>find</strong>&#8220;, to do that:</p>
<ul>
<li><strong>with the find command<br />
</strong></li>
</ul>
<blockquote>
<div>cd /to_folder<br />
find . -iname &#8216;*conf&#8217; | xargs grep &#8216;string&#8217; -sl</div>
</blockquote>
<p>-iname &#8216;*conf&#8217; states that the seach will only check the files ending with *conf,<br />
using -iname &#8216;*&#8217; will search inside all the files within the current directory.<br />
grep &#8216;string&#8217; is the query string that you ment to search for.</p>
<p>If you only want to make a search based on the file names you should better use &#8220;locate&#8221; since it has an indexing feature to make faster searches:</p>
<blockquote>
<div>updatedb<br />
locate filename</div>
</blockquote>
<p>&nbsp;</p>
<p>If you don&#8217;t have the locate command, you can install it with the yum installer:</p>
<blockquote>
<div>updatedb<br />
yum install mlocate</div>
</blockquote>
<ul>
<li><strong>Find files based on their size</strong></li>
</ul>
<p>With the below command you can find the files greater than 100 MBs.</p>
<blockquote>
<div>find /folder/ -type f -size +100000k -exec ls -lh {} \; | awk &#8216;{ print $9 &#8220;: &#8221; $5 }&#8217;</div>
</blockquote>
<ul>
<li><strong>Find files based on their modification date<br />
</strong></li>
</ul>
<p>With the below command you can find the files based on their modification date., if you write ctime instead of mtime you can list the files created within two days.:</p>
<blockquote>
<div>find /folder/ -type f -mtime -2 -exec ls -lh {} \; | awk &#8216;{ print $9 &#8220;: &#8221; $5 }&#8217;</div>
</blockquote>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/linux-recursive-search-inside-files/">Linux Recursive Search inside files</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/linux-recursive-search-inside-files/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">48</post-id>	</item>
	</channel>
</rss>
