<?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>Chanel's Blog &#187; find</title>
	<atom:link href="http://cmunezero.com/tag/find/feed/" rel="self" type="application/rss+xml" />
	<link>http://cmunezero.com</link>
	<description>Where code meets love... and a lot of awkward silences...</description>
	<lastBuildDate>Tue, 11 May 2010 21:17:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Useful Linux Commands: Find and Search</title>
		<link>http://cmunezero.com/2008/09/01/useful-linux-scripts-find-and-search/</link>
		<comments>http://cmunezero.com/2008/09/01/useful-linux-scripts-find-and-search/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 00:29:28 +0000</pubDate>
		<dc:creator>chanel</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash scripting]]></category>
		<category><![CDATA[commandline]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[linux scripting]]></category>
		<category><![CDATA[linux terminal]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://cmunezero.com/?p=70</guid>
		<description><![CDATA[Learning Linux commands is probably the largest hump anybody new to Linux faces.  Over the last year, I&#8217;ve compiled some useful, and somewhat non-obvious scripts that are really helpful to me on a weekly basis.  Here are commands that deal with finding files and searching for text within a file:
Find and delete a [...]]]></description>
			<content:encoded><![CDATA[<p>Learning Linux commands is probably the largest hump anybody new to Linux faces.  Over the last year, I&#8217;ve compiled some useful, and somewhat non-obvious scripts that are really helpful to me on a weekly basis.  Here are commands that deal with finding files and searching for text within a file:</p>
<p>Find and delete a directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>PATH<span style="color: #000000; font-weight: bold;">/</span>TO<span style="color: #000000; font-weight: bold;">/</span>DIR <span style="color: #660033;">-type</span> d <span style="color: #660033;">-name</span> SEARCH <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p>Find and delete a file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>PATH<span style="color: #000000; font-weight: bold;">/</span>TO<span style="color: #000000; font-weight: bold;">/</span>DIR <span style="color: #660033;">-name</span> SEARCH <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p>Search within files:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;SEARCH&quot;</span> <span style="color: #000000; font-weight: bold;">*</span>.EXTENSION <span style="color: #000000; font-weight: bold;">/</span>PATH<span style="color: #000000; font-weight: bold;">/</span>TO<span style="color: #000000; font-weight: bold;">/</span>DIR</pre></div></div>

<p>Find and search within files:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">﻿<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>PATH<span style="color: #000000; font-weight: bold;">/</span>TO<span style="color: #000000; font-weight: bold;">/</span>DIR <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;SEARCH&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> -I<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-H</span> SEARCH <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>For more advanced options there&#8217;s always:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">man</span> <span style="color: #c20cb9; font-weight: bold;">find</span>
<span style="color: #c20cb9; font-weight: bold;">man</span> <span style="color: #c20cb9; font-weight: bold;">grep</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://cmunezero.com/2008/09/01/useful-linux-scripts-find-and-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing Trackerd</title>
		<link>http://cmunezero.com/2008/08/27/removing-trackerd/</link>
		<comments>http://cmunezero.com/2008/08/27/removing-trackerd/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 14:33:53 +0000</pubDate>
		<dc:creator>chanel</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[linux search]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[tracker-utils]]></category>
		<category><![CDATA[trackerd]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu search]]></category>

		<guid isPermaLink="false">http://cmunezero.com/?p=67</guid>
		<description><![CDATA[Trackerd is probably the least useful tool that comes with Ubuntu.  While indexing, it maxes out cpu and memory.  Of course it allows you to search, but the search never finds what I&#8217;m looking.  In my experience, i&#8217;ve found that find and grep are much more useful, especially if its only within [...]]]></description>
			<content:encoded><![CDATA[<p>Trackerd is probably the least useful tool that comes with Ubuntu.  While indexing, it maxes out cpu and memory.  Of course it allows you to search, but the search never finds what I&#8217;m looking.  In my experience, i&#8217;ve found that <a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?find">find</a> and <a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?grep">grep</a> are much more useful, especially if its only within a subdirectory.</p>
<p>Trying to remove trackerd is much harder than one would think.  Using apt/aptitude proved fruitless since trying to remove/purge trackerd or tracker-utils does absolutely nothing.  From <a href="http://dailyvim.blogspot.com/">Travis</a>, I use these two scripts to basically prevent trackerd from running:</p>
<p>killall trackerd<br />
mv /usr/bin/trackerd /usr/bin/trackerd-old</p>
<p>You might want to use &#8216;whereis trackerd&#8217; to find out where your trackerd binary is actually located before using the move command.</p>
]]></content:encoded>
			<wfw:commentRss>http://cmunezero.com/2008/08/27/removing-trackerd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
