<?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; terminal</title>
	<atom:link href="http://cmunezero.com/tag/terminal/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>
	</channel>
</rss>
