<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Shell Script Learnings of Bash for Make Benefit Professional Career of ShellMariachi</title>
	<atom:link href="http://shellmariachi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://shellmariachi.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 13 Nov 2007 10:29:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='shellmariachi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Shell Script Learnings of Bash for Make Benefit Professional Career of ShellMariachi</title>
		<link>http://shellmariachi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://shellmariachi.wordpress.com/osd.xml" title="Shell Script Learnings of Bash for Make Benefit Professional Career of ShellMariachi" />
	<atom:link rel='hub' href='http://shellmariachi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>tips on grep</title>
		<link>http://shellmariachi.wordpress.com/2007/11/13/tips-on-grep/</link>
		<comments>http://shellmariachi.wordpress.com/2007/11/13/tips-on-grep/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 10:21:40 +0000</pubDate>
		<dc:creator>shellmariachi</dc:creator>
				<category><![CDATA[Non shell scripting - general UNIX]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://shellmariachi.wordpress.com/2007/11/13/tips-on-grep/</guid>
		<description><![CDATA[grep -option pattern file-name1 file-name2 &#62; results-file grep gives us options that we can use with it. Here&#8217;s a list of some of the most useful: · -h if you search more than one file at a time, the results contain the name of the file from which the string was found. This option turns [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=15&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><strong><span style="font-size:10pt;font-family:Arial;">grep</span></strong><span style="font-size:10pt;font-family:Arial;"> <em>-option pattern file-name1 file-name2 </em>&gt; results-file </span></p>
<p class="MsoNormal"><strong><span style="font-size:10pt;font-family:Arial;">grep</span></strong><span style="font-size:10pt;font-family:Arial;"> gives us options that we can use with it. Here&#8217;s a list of some of the most useful: </span></p>
<pre style="margin-left:0.5in;text-indent:-0.25in;"><!--[if !supportLists]--><span style="font-size:9pt;font-family:Symbol;"><span>·<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">          </span></span></span><!--[endif]--><span style="font-size:9pt;font-family:Arial;">-h<span>   </span>if you search more than one file at a time, the results contain the name of the file </span></pre>
<pre style="margin-left:0.5in;text-indent:-0.25in;"><span style="font-size:9pt;font-family:Arial;">              from which the string was found. This option turns off that feature, giving you only </span></pre>
<pre style="margin-left:0.5in;text-indent:-0.25in;"><span style="font-size:9pt;font-family:Arial;">              the lines without the file name.<span>   </span></span></pre>
<pre style="margin-left:0.5in;text-indent:-0.25in;"><!--[if !supportLists]--><span style="font-size:9pt;font-family:Symbol;"><span>·<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">          </span></span></span><!--[endif]--><span style="font-size:9pt;font-family:Arial;">-n<span>   </span>precedes each line with the line number where it was found<span>  </span></span></pre>
<pre style="margin-left:0.5in;text-indent:-0.25in;"><!--[if !supportLists]--><span style="font-size:9pt;font-family:Symbol;"><span>·<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">          </span></span></span><!--[endif]--><span style="font-size:9pt;font-family:Arial;">-i<span>    </span>tells grep to ignore case so that it treats "the" and "The" as the same word<span>  </span></span></pre>
<pre style="margin-left:0.5in;text-indent:-0.25in;"><!--[if !supportLists]--><span style="font-size:9pt;font-family:Symbol;"><span>·<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">          </span></span></span><!--[endif]--><span style="font-size:9pt;font-family:Arial;">-l<span>     </span>displays a list of files that contain the string<span>  </span></span></pre>
<pre style="margin-left:0.5in;text-indent:-0.25in;"><!--[if !supportLists]--><span style="font-size:9pt;font-family:Symbol;"><span>·<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">          </span></span></span><!--[endif]--><span style="font-size:9pt;font-family:Arial;">-w<span>    </span>restricts the search to whole words only </span> <span style="font-family:Arial;"> </span></pre>
<p>#shellmariachi</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shellmariachi.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shellmariachi.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shellmariachi.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shellmariachi.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shellmariachi.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shellmariachi.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shellmariachi.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shellmariachi.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shellmariachi.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shellmariachi.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shellmariachi.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shellmariachi.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shellmariachi.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shellmariachi.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shellmariachi.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shellmariachi.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=15&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shellmariachi.wordpress.com/2007/11/13/tips-on-grep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51562e4003b5403ee09856feb5739454?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shellmariachi</media:title>
		</media:content>
	</item>
		<item>
		<title>Handy vi commands</title>
		<link>http://shellmariachi.wordpress.com/2007/10/17/handy-vi-commands/</link>
		<comments>http://shellmariachi.wordpress.com/2007/10/17/handy-vi-commands/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 09:25:15 +0000</pubDate>
		<dc:creator>shellmariachi</dc:creator>
				<category><![CDATA[Non shell scripting - general UNIX]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://shellmariachi.wordpress.com/2007/10/17/handy-vi-commands/</guid>
		<description><![CDATA[VI navigation :0&#60;Return&#62; or 1G move cursor to first line in file :n&#60;Return&#62; or nG move cursor to line n :$&#60;Return&#62; or G move cursor to last line in file ^f move forward one screen ^b move backward one screen Undo: * u UNDO WHATEVER YOU JUST DID; a simple toggle Show line numbers: :set [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=11&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">VI navigation</span></p>
<p class="MsoNormal"><font color="#000000"><span style="font-size:10pt;font-family:Arial;">  <tt><span style="font-family:Arial;">:0&lt;Return&gt; <em>or</em> 1G</span></tt> <em>move cursor to first line in file</em> </span></font></p>
<p class="MsoNormal"><font color="#000000"><span style="font-size:10pt;font-family:Arial;">  <tt><span style="font-family:Arial;">:n&lt;Return&gt; <em>or</em> nG</span></tt> <em>move cursor to line <tt><span style="font-family:Arial;">n</span></tt></em>   </span></font></p>
<p class="MsoNormal"><font color="#000000"><span style="font-size:10pt;font-family:Arial;"><span>  </span><tt><span style="font-family:Arial;">:$&lt;Return&gt; <em>or</em> G</span></tt> <em>move cursor to last line in file</em></span></font></p>
<p class="MsoNormal"><font color="#000000"><span style="font-size:10pt;font-family:Arial;">  <tt><span style="font-family:Arial;">^f</span></tt> <em>move forward one screen</em>  </span></font></p>
<p class="MsoNormal"><font color="#000000"><span style="font-size:10pt;font-family:Arial;"><span> </span><span> </span><tt><span style="font-family:Arial;">^b</span></tt> <em>move backward one screen</em></span></font></p>
<p class="MsoNormal"><em><span style="font-size:10pt;font-family:Arial;"> </span></em><span style="font-size:10pt;font-family:Arial;">Undo:</span></p>
<p class="MsoNormal"><font color="#000000"><span style="font-size:10pt;font-family:Arial;">* <tt><span style="font-family:Arial;">u</span></tt> <em>UNDO WHATEVER YOU JUST DID; a simple toggle</em></span></font></p>
<p class="MsoNormal"><em><span style="font-size:10pt;font-family:Arial;"> </span></em><span style="font-size:10pt;font-family:Arial;">Show line numbers:</span></p>
<p><font color="#000000"><span style="font-size:10pt;font-family:Arial;">:set number</span></font></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Turn off showing line numbers:</span></p>
<p class="MsoNormal"><font color="#000000"><span style="font-size:10pt;font-family:Arial;"> :set nonumber</span></font></p>
<p> Source:</p>
<p><a href="http://www.cs.colostate.edu/helpdocs/vi.html" target="_blank">http://www.cs.colostate.edu/helpdocs/vi.html</a></p>
<p>The above source pointed too is really exhaustive. Take a print-out and stick it to your cubicle wall.</p>
<p>#shellmariachi</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shellmariachi.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shellmariachi.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shellmariachi.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shellmariachi.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shellmariachi.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shellmariachi.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shellmariachi.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shellmariachi.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shellmariachi.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shellmariachi.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shellmariachi.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shellmariachi.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shellmariachi.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shellmariachi.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shellmariachi.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shellmariachi.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=11&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shellmariachi.wordpress.com/2007/10/17/handy-vi-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51562e4003b5403ee09856feb5739454?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shellmariachi</media:title>
		</media:content>
	</item>
		<item>
		<title>Parameter Substitution Only in Korn/Bash</title>
		<link>http://shellmariachi.wordpress.com/2007/10/16/parameter-substitution-only-in-kornbash/</link>
		<comments>http://shellmariachi.wordpress.com/2007/10/16/parameter-substitution-only-in-kornbash/#comments</comments>
		<pubDate>Tue, 16 Oct 2007 13:07:33 +0000</pubDate>
		<dc:creator>shellmariachi</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Shell scripting]]></category>
		<category><![CDATA[Shell Scripting Intermediate]]></category>

		<guid isPermaLink="false">http://shellmariachi.wordpress.com/2007/10/16/parameter-substitution-only-in-kornbash/</guid>
		<description><![CDATA[${#parameter} substitutes the number of characters in the contents ${#array[*]} substitutes the number of elements in array. Now this is really important, &#8220;pay attention 007&#8243;: ${parameter#pattern} if the pattern given is found at start of the contents of parameter, it deletes the matching characters and substitutes the remainder. The smallest possible match is deleted. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=10&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:'CourierNew,Bold';color:#006666;">${#</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">parameter</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">} </span><span style="font-family:Arial;color:black;">substitutes the number of characters in the contents</span></p>
<p class="MsoNormal"><span style="font-family:'CourierNew,Bold';color:#006666;">${#</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">array</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">[*]} </span><span style="font-family:Arial;color:black;">substitutes the number of elements in </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">array.</span></em><span style="font-size:10pt;font-family:'Arial,Bold';color:black;"></span></p>
<p class="MsoNormal"><span style="font-family:'CourierNew,Bold';color:#006666;"> </span><span style="font-family:Arial;color:black;">Now this is really important, &#8220;pay attention 007&#8243;:<br />
</span><span style="font-family:'CourierNew,Bold';color:#006666;"><br />
${</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">parameter#pattern</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">} </span><span style="font-family:Arial;color:black;">if the </span><var>pattern</var><span style="font-family:Arial;color:black;"> given is found at start of the contents of </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">parameter</span></em><span style="font-family:Arial;color:black;">, it deletes the matching characters and substitutes the remainder. The smallest possible match is deleted. </span>The <var>pattern</var> is expanded to produce a pattern just as in filename expansion</p>
<p class="MsoNormal"><span style="font-family:'CourierNew,Bold';color:#006666;">${</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">parameter##pattern</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">} </span><span style="font-family:Arial;color:black;">same as above but deletes the largest possible match at the start of </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">parameter.</span></em></p>
<p class="MsoNormal"><span style="font-family:'CourierNew,Bold';color:#006666;">${</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">parameter%pattern</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">} </span><span style="font-family:Arial;color:black;">same as above but deletes the smallest match at the end of </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">parameter.</span></em></p>
<p class="MsoNormal"><span style="font-family:'CourierNew,Bold';color:#006666;">${</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">parameter%%pattern</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">} </span><span style="font-family:Arial;color:black;">same as above but deletes the largest match at the end of </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">parameter.</span></em><span style="font-size:10pt;font-family:'CourierNew,Bold';color:black;"></span></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal"><font color="#808080"><span style="font-size:10pt;font-family:Arial;color:black;">Example: &#8220;${0##*/}&#8221; in a shell script means:</span></font></p>
<p class="MsoNormal"><font color="#808080"><span style="font-size:10pt;font-family:Arial;color:black;">This is meant to remove all characters before the last “/ “from the path entered to invoke the script, leaving only the name of the script.</span></font></p>
<p class="MsoNormal"><font color="#808080"><span style="font-size:10pt;font-family:Arial;color:black;">## matches the longest match from start of the string, and looks for the last occurrence of “/” from beginning, if only # was used it would match the shortest match from start of the string, looking for the first occurrence of “/” from beginning.</span></font><span style="font-size:8pt;color:black;"></span></p>
<p class="MsoNormal">#shellmariachi</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shellmariachi.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shellmariachi.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shellmariachi.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shellmariachi.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shellmariachi.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shellmariachi.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shellmariachi.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shellmariachi.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shellmariachi.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shellmariachi.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shellmariachi.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shellmariachi.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shellmariachi.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shellmariachi.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shellmariachi.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shellmariachi.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=10&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shellmariachi.wordpress.com/2007/10/16/parameter-substitution-only-in-kornbash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51562e4003b5403ee09856feb5739454?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shellmariachi</media:title>
		</media:content>
	</item>
		<item>
		<title>Parameter Substitution in Bourne/Korn/Bash</title>
		<link>http://shellmariachi.wordpress.com/2007/10/16/parameter-substitution-in-bournekornbash/</link>
		<comments>http://shellmariachi.wordpress.com/2007/10/16/parameter-substitution-in-bournekornbash/#comments</comments>
		<pubDate>Tue, 16 Oct 2007 12:49:03 +0000</pubDate>
		<dc:creator>shellmariachi</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Shell scripting]]></category>
		<category><![CDATA[Shell Scripting Basic]]></category>

		<guid isPermaLink="false">http://shellmariachi.wordpress.com/2007/10/16/parameter-substitution-in-bournekornbash/</guid>
		<description><![CDATA[${parameter:-word} substitutes the contents of the parameter but if it is empty or undefined, it substitutes the word, which might contain unquoted spaces. The value of parameter does not change. ${parameter:=word} substitutes the contents of the parameter but if it is empty or undefined, it sets parameter equal to the word and substitutes word. ${parameter:?message} [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=9&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span style="font-family:'CourierNew,Bold';color:#006666;">${</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">parameter</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">:-</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">word</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">}</span><strong><span style="font-family:'CourierNew,Bold';color:#006666;"> </span></strong><span style="font-family:Arial;color:black;">substitutes the contents of the </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">parameter </span></em><span style="font-family:Arial;color:black;">but if it is empty or undefined, it substitutes the </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">word</span></em><span style="font-family:Arial;color:black;">, which might contain unquoted spaces.  </span><span style="font-family:Arial;color:black;">The value of </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">parameter</span></em><span style="font-family:Arial;color:black;"> does not change.</span></p>
<p class="MsoNormal"><span style="font-family:'CourierNew,Bold';color:#006666;">${</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">parameter</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">:=</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">word</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">}</span><strong><span style="font-family:'CourierNew,Bold';color:#006666;"> </span></strong><span style="font-family:Arial;color:black;">substitutes the contents of the </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">parameter </span></em><span style="font-family:Arial;color:black;">but if it is empty or undefined, it sets </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">parameter </span></em><span style="font-family:Arial;color:black;">equal to the </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">word </span></em><span style="font-family:Arial;color:black;">and substitutes </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">word.</span></em></p>
<p class="MsoNormal"><span style="font-family:'CourierNew,Bold';color:#006666;">${</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">parameter:</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">?</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">message</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">}</span><strong><span style="font-family:'CourierNew,Bold';color:#006666;"> </span></strong><span style="font-family:Arial;color:black;">substitutes the contents of the </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">parameter</span></em><span style="font-family:Arial;color:black;">, but if it is empty or undefined, aborts the script and gives the </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">message </span></em><span style="font-family:Arial;color:black;">as a final error. Message might contain unquoted spaces.</span></p>
<p class="MsoNormal"><span style="font-family:'CourierNew,Bold';color:#006666;">${</span><em><span style="font-family:'CourierNew,BoldItalic';color:#006666;">parameter:+word</span></em><span style="font-family:'CourierNew,Bold';color:#006666;">}</span><strong><span style="font-family:'CourierNew,Bold';color:#006666;"> </span></strong><span style="font-family:Arial;color:black;">if </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">parameter </span></em><span style="font-family:Arial;color:black;">is not empty, it substitutes the </span><em><span style="font-family:'CourierNew,Italic';color:#006666;">word</span></em><span style="font-family:Arial;color:black;">; otherwise it substitutes nothing. The value of</span><em><span style="font-family:'CourierNew,Italic';color:#006666;"> parameter</span></em><span style="font-family:Arial;color:black;"> does not change.</span></p>
<p class="MsoNormal">#shellmariachi</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shellmariachi.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shellmariachi.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shellmariachi.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shellmariachi.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shellmariachi.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shellmariachi.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shellmariachi.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shellmariachi.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shellmariachi.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shellmariachi.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shellmariachi.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shellmariachi.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shellmariachi.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shellmariachi.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shellmariachi.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shellmariachi.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=9&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shellmariachi.wordpress.com/2007/10/16/parameter-substitution-in-bournekornbash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51562e4003b5403ee09856feb5739454?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shellmariachi</media:title>
		</media:content>
	</item>
		<item>
		<title>File search &#8211; find</title>
		<link>http://shellmariachi.wordpress.com/2007/10/12/file-search-find/</link>
		<comments>http://shellmariachi.wordpress.com/2007/10/12/file-search-find/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 12:49:49 +0000</pubDate>
		<dc:creator>shellmariachi</dc:creator>
				<category><![CDATA[Non shell scripting - general UNIX]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://shellmariachi.wordpress.com/2007/10/12/file-search-find/</guid>
		<description><![CDATA[To search for a file named &#8220;gibberish&#8221;, in a directory or subdirectories, lets you don&#8217;t have a clue, so the root (/) directory: find / -name gibberish To search for a file containing data with a string &#8220;gibberish&#8221; in it, in a directory or subdirectories, lets say under current directory (.) find . &#124; xargs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=7&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To search for a file named &#8220;gibberish&#8221;, in a directory or subdirectories, lets you don&#8217;t have a clue, so the root (/) directory:</p>
<p>find / -name gibberish</p>
<p>To search for a file containing data with a string &#8220;gibberish&#8221; in it, in a directory or subdirectories,  lets say under current directory (.)</p>
<p class="MsoNormal">find . | xargs grep gibberish</p>
<p class="MsoNormal">I didn&#8217;t have much time today for a longer post <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>#shellmariachi</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shellmariachi.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shellmariachi.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shellmariachi.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shellmariachi.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shellmariachi.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shellmariachi.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shellmariachi.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shellmariachi.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shellmariachi.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shellmariachi.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shellmariachi.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shellmariachi.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shellmariachi.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shellmariachi.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shellmariachi.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shellmariachi.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=7&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shellmariachi.wordpress.com/2007/10/12/file-search-find/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51562e4003b5403ee09856feb5739454?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shellmariachi</media:title>
		</media:content>
	</item>
		<item>
		<title>Comment block in shell scripts</title>
		<link>http://shellmariachi.wordpress.com/2007/10/11/comment-block-in-shell-scripts/</link>
		<comments>http://shellmariachi.wordpress.com/2007/10/11/comment-block-in-shell-scripts/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 10:27:45 +0000</pubDate>
		<dc:creator>shellmariachi</dc:creator>
				<category><![CDATA[Shell]]></category>
		<category><![CDATA[Shell scripting]]></category>
		<category><![CDATA[Shell Scripting Basic]]></category>

		<guid isPermaLink="false">http://shellmariachi.wordpress.com/2007/10/11/comment-block-in-shell-scripts/</guid>
		<description><![CDATA[Hmm&#8230;so you were wondering it would be as easy as in higher level languages. Well its not that straigtforward, and you won&#8217;t be putting a # before each line, are you? :&#60;&#60;&#8217;COMMENTBLOCK&#8217; commented code goes here COMMENTBLOCK You can replace COMMENTBLOCK with any string. But remember to put the quotes around the &#8216;COMMENTBLOCK&#8217; in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=6&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hmm&#8230;so you were wondering it would be as easy as in higher level languages.  Well its not that straigtforward, and you won&#8217;t be putting a # before each line, are you?</p>
<p class="MsoNormal"><span style="font-size:8pt;">:&lt;&lt;&#8217;COMMENTBLOCK&#8217;</span></p>
<p class="MsoNormal">commented code goes here</p>
<p class="MsoNormal"><span style="font-size:8pt;">COMMENTBLOCK</span></p>
<p> You can replace COMMENTBLOCK with any string. But remember to put the quotes around the &#8216;COMMENTBLOCK&#8217; in the  starting line of the block.</p>
<p>We are utilizing a here document for this purpose.</p>
<p>Source:</p>
<p><a href="http://tldp.org/LDP/abs/html/here-docs.html#CBLOCK1" target="_blank">http://tldp.org/LDP/abs/html/here-docs.html#CBLOCK1</a></p>
<p>Alternatively you can use if-test</p>
<pre><span style="font-family:Arial;color:black;">COMMENT_BLOCK=</span><span style="font-size:11pt;font-family:Arial;color:black;">

if [ </span><span style="font-family:Arial;color:black;">$COMMENT_BLOCK</span><span style="font-size:11pt;font-family:Arial;color:black;"> ]; then

commented code goes here</span></pre>
<pre><span style="font-size:11pt;font-family:Arial;color:black;">fi</span><span style="font-size:11pt;font-family:Arial;"></span></pre>
<pre></pre>
<p>Source:</p>
<p><a href="http://tldp.org/LDP/abs/html/assortedtips.html" target="_blank">http://tldp.org/LDP/abs/html/assortedtips.html</a></p>
<p>A short tip, but useful none-the-less as there is no provisioned syntax for this; its hacks like above that can be used to serve as comment blocks</p>
<p>#shellmariachi</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shellmariachi.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shellmariachi.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shellmariachi.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shellmariachi.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shellmariachi.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shellmariachi.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shellmariachi.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shellmariachi.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shellmariachi.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shellmariachi.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shellmariachi.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shellmariachi.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shellmariachi.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shellmariachi.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shellmariachi.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shellmariachi.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=6&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shellmariachi.wordpress.com/2007/10/11/comment-block-in-shell-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51562e4003b5403ee09856feb5739454?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shellmariachi</media:title>
		</media:content>
	</item>
		<item>
		<title>Add new drive, free disk space on Linux</title>
		<link>http://shellmariachi.wordpress.com/2007/10/10/add-new-drive-free-disk-space-on-linux/</link>
		<comments>http://shellmariachi.wordpress.com/2007/10/10/add-new-drive-free-disk-space-on-linux/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 12:22:15 +0000</pubDate>
		<dc:creator>shellmariachi</dc:creator>
				<category><![CDATA[Non shell scripting - general UNIX]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://shellmariachi.wordpress.com/2007/10/10/add-new-drive-free-disk-space-on-linux/</guid>
		<description><![CDATA[Intro: Today&#8217;s post is dedicated to a problem that I ran into, of having consumed 100% of disk space (few kbs left), on my RHEL box (actually a VMWare Image, so I don&#8217;t guarantee success in case of same problem on hardware, but theoretically it should work there too). Solution was to add an additional [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=5&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Intro:</strong> Today&#8217;s post is dedicated to a problem that I ran into, of having consumed 100% of disk space (few kbs left), on my RHEL box (actually a VMWare Image, so I don&#8217;t guarantee success in case of same problem on hardware, but theoretically it should work there too). Solution was to add an additional drive and transfer some of the data onto the new drive. Here the steps to resolve if run into similar problem.</p>
<p>Sorry, this post has nothing to do with Shell scripting <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Strategy: </strong>Add a new drive, format it into few partitions, mount individual directories onto these new partitions, transfer data from old drive to new drive.</p>
<p><strong>Note: </strong>The steps defined below are very critical. Be very careful with what you type; commands like fdisk, mkfs have potential to ruin your system. Also, remove old data from old drive, only after ensuring its safe and correctly copied in its new place.</p>
<p><strong>Step 1:</strong></p>
<p>Login to your machine, and do a</p>
<p>ls /dev/sd* (SCSI drive) or /dev/hd* (IDE drive)</p>
<p>Note down the entries.</p>
<p>Mine had something like</p>
<p>/dev/sda   /dev/sda1   /dev/sda2</p>
<p><strong>Step 2:</strong></p>
<p>In case of VM Image login and add a new virtual drive (my case). In case of hardware, I guess ask a hardware expert/IT person to do that.</p>
<p><strong>Step 3:</strong></p>
<p>Login to your machine, and do a</p>
<p>ls /dev/sd* or /dev/hd* again</p>
<p>I saw that a /dev/sdb was there additionally (You can&#8217;t check for a new drive doing a &#8220;ls -lt&#8221;, as all drives listed carry same date-time, the time when the table was last updated).</p>
<p><strong>Step 4:</strong></p>
<p>Partition this new drive. I planned to host my /opt, /tmp and &#8220;/p4-data&#8221; (location where my p4 client syncs data) directories, onto the 3 different partitions on the new drive.</p>
<p>You will need to either login as root or do a sudo with each command for this.</p>
<p>Do a /sbin/fdisk or just fdisk (if sbin is in path) on the new drive</p>
<p>/sbin/fdisk /dev/sdb</p>
<p>You will get</p>
<p>Command (m for help):</p>
<p>Here fdisk is waiting for a command; you can type m to get a list of options.</p>
<p>Enter n to create a new partition.</p>
<p>Command action<br />
e extended<br />
p primary partition (1-4)</p>
<p>Enter p. Choose defaults for Partition number and  First cylinder (default is 1 for new drive). Now decide in what percentages you want to divide your disk. I decided into 40-40-20, and had 1044 cylinders available. So when prompted to enter Last cylinder I entered 400. Alternatively you can specify in bytes, kb or MB, see fdisk man.</p>
<p>Repeat this for the other partitions, giving appropriate values for First and Last cylinders.</p>
<p>At last, we&#8217;ll display the partition table. Again, write down all of this information&#8212;especially the block sizes of your new partitions. Enter p when prompted to print the partition table.</p>
<p>For me finally sizing up was 1-400 (sdb1), 401-800(sdb2), 801-1044(sdb3).</p>
<p>Finally, we use the w command to write the changes to disk and exit fdisk. Alternatively, to quit fdisk without saving any changes, use the q command.</p>
<p><strong>Step 5:</strong></p>
<p>Reboot, for changes to be updated (to be on safe side). Now we format the partitions with type ext3.</p>
<p>/sbin/mkfs -t ext3 /dev/sdb1</p>
<p>Repeat for other partitions.</p>
<p><strong>Step 6:</strong></p>
<p>Now create a new directory (say &#8220;newhd&#8221;) and mount it on one of the partitions.</p>
<p>mount /dev/sdb1 /newhd</p>
<p>Now back-up (recursively copy) your data you want to free up on old drive (in my case data on /opt,  /p4-data) onto this new directory.<br />
<strong><br />
Step 7:</strong></p>
<p>Rename the old directories (/opt, /p4-data, /tmp)</p>
<p>mv /opt /opt.old</p>
<p>mv /p4-data /p4-data.old</p>
<p>mv /tmp /tmp.old</p>
<p>Recreate these directories</p>
<p>mkdir /opt</p>
<p>mkdir /p4-data</p>
<p>mkdir /tmp (SEE ADDITIONAL STEP 10 for this new /tmp)</p>
<p><strong>Step 8:</strong> Edit /etc/fstab and add lines like the following:</p>
<p>/dev/sdb1    /p4-data    ext3    defaults    2 1</p>
<p>/dev/sdb2    /opt    ext3    defaults    2 1</p>
<p>/dev/sdb3    /tmp   ext3    defaults    2 1</p>
<p><em>On a separate note: The last two digits mean this, in case you are wondering:</em></p>
<p><em>Column 5: Adjusts the archiving schedule for the partition (used by dump).</em></p>
<p><em>Column 6: Indicates the order in which the fsck utility will scan the partitions for errors when the computer powers on.</em></p>
<p>Do a &#8220;mount -a&#8221; to mount according to the new fstab.</p>
<p>Now transfer the backed-up data on /newhd (mounted on sdb1 so you can leave the data meant for /p4-data behind) to appropriate places (the newly created directories mounted on new partitions).</p>
<p>Unmount the backed-up directory as:</p>
<p>umount /newhd</p>
<p><strong>Step 9:</strong></p>
<p>You are done now. Check the new mount points using &#8220;mount&#8221; and &#8220;df -k&#8221; commands.  Check that you have your data on the new directories. Reboot and check if everything is preserved.</p>
<p>For me it was:</p>
<p>$mount<br />
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)<br />
&#8230;<br />
/dev/sda1 on /boot type ext3 (rw)<br />
&#8230;<br />
/dev/sdb1 on /p4-data type ext3 (rw)<br />
/dev/sdb2 on /opt type ext3 (rw)<br />
/dev/sdb3 on /tmp type ext3 (rw)<br />
&#8230;</p>
<p>Now you can delete the data from the old directories (like /opt.old) . This should free up space on old drive. Also you can delete the /newhd directory as its not needed now. (Ensure you unmounted it and its empty).</p>
<p><strong>Step 10: </strong></p>
<p>This is an extra step required for /tmp directory you created in Step 7</p>
<p>chmod 1777 /tmp</p>
<p>This sets the sticky bit on tmp directory, its permissions should look like this &#8220;drwxrwxrwt&#8221;</p>
<p><em>On a separate note:</em></p>
<p><em>Its good to mount /tmp on a new partition. Why? &#8220;Often-modified files contribute heavily to fragmentation. One of the best ways to contain fragmentation is to store often-modified files on their own partition. That way, the other partitions are unaffected by the fragmentation caused by the heavily modified files.&#8221;  * See the 4th source below.<br />
</em></p>
<p><strong>Note:</strong><br />
In case you find any fault with the steps mentioned, when you try, please do let me know, to make the corrections in this article. I wrote it by recollecting what I had done, while following a bunch of resources on the web.</p>
<p><strong>Sources:</strong></p>
<p><a href="http://www.ibm.com/developerworks/library/l-partplan.html#h6" target="_blank">http://www.ibm.com/developerworks/library/l-partplan.html#h6</a></p>
<p><a href="http://www.debianhelp.co.uk/newharddisk.htm" target="_blank">http://www.debianhelp.co.uk/newharddisk.htm</a></p>
<p><a href="http://www.tdl.com/~netex/linux-doc-project/install-guide/node73.html" target="_blank">http://www.tdl.com/~netex/linux-doc-project/install-guide/node73.html</a></p>
<p>* <a href="http://www.funtoo.org/en/articles/linux/partitioning/2/" target="_blank">http://www.funtoo.org/en/articles/linux/partitioning/2/</a></p>
<p>#shellmariachi</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shellmariachi.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shellmariachi.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shellmariachi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shellmariachi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shellmariachi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shellmariachi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shellmariachi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shellmariachi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shellmariachi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shellmariachi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shellmariachi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shellmariachi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shellmariachi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shellmariachi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shellmariachi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shellmariachi.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=5&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shellmariachi.wordpress.com/2007/10/10/add-new-drive-free-disk-space-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51562e4003b5403ee09856feb5739454?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shellmariachi</media:title>
		</media:content>
	</item>
		<item>
		<title>Special Shell Variables</title>
		<link>http://shellmariachi.wordpress.com/2007/10/09/special-shell-variables/</link>
		<comments>http://shellmariachi.wordpress.com/2007/10/09/special-shell-variables/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 08:17:49 +0000</pubDate>
		<dc:creator>shellmariachi</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Shell scripting]]></category>
		<category><![CDATA[Shell Scripting Basic]]></category>

		<guid isPermaLink="false">http://shellmariachi.wordpress.com/2007/10/09/special-shell-variables/</guid>
		<description><![CDATA[Variable Description $0 The name of the command being executed. For shell scripts, this is the path with which it was invoked. $n These variables correspond to the arguments with which a script was invoked. Here n is a positive decimal number corresponding to the position of an argument (the first argument is $1; the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=4&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<table class="MsoTableGrid" style="border:medium none;border-collapse:collapse;" border="1" cellpadding="0" cellspacing="0">
<tr>
<td style="border:1pt solid windowtext;width:41.4pt;padding:0 5.4pt;" valign="top" width="55">
<p class="MsoNormal"><span style="font-size:8pt;">Variable</span></p>
</td>
<td style="width:401.4pt;border-color:windowtext windowtext windowtext #000000;border-style:solid solid solid none;border-width:1pt 1pt 1pt medium;padding:0 5.4pt;" valign="top" width="535">
<p class="MsoNormal"><span style="font-size:8pt;">Description</span></p>
</td>
</tr>
<tr>
<td style="width:41.4pt;border-color:#000000 windowtext windowtext;border-style:none solid solid;border-width:medium 1pt 1pt;padding:0 5.4pt;" valign="top" width="55">
<p class="MsoNormal"><span style="font-size:8pt;">$0</span></p>
</td>
<td style="width:401.4pt;border-style:none solid solid none;border-width:medium 1pt 1pt medium;padding:0 5.4pt;" valign="top" width="535">
<p class="MsoNormal"><span style="font-size:8pt;">The name of the command   being executed. For shell scripts, this is the path with which it was   invoked.</span></p>
</td>
</tr>
<tr>
<td style="width:41.4pt;border-color:#000000 windowtext windowtext;border-style:none solid solid;border-width:medium 1pt 1pt;padding:0 5.4pt;" valign="top" width="55">
<p class="MsoNormal"><span style="font-size:8pt;">$n</span></p>
</td>
<td style="width:401.4pt;border-style:none solid solid none;border-width:medium 1pt 1pt medium;padding:0 5.4pt;" valign="top" width="535">
<p class="MsoNormal"><span style="font-size:8pt;">These variables correspond   to the arguments with which a script was invoked. Here n is a positive   decimal number corresponding to the position of an argument (the first   argument is $1; the second argument is $2, and so on).</span></p>
</td>
</tr>
<tr>
<td style="width:41.4pt;border-color:#000000 windowtext windowtext;border-style:none solid solid;border-width:medium 1pt 1pt;padding:0 5.4pt;" valign="top" width="55">
<p class="MsoNormal"><span style="font-size:8pt;">$#</span></p>
</td>
<td style="width:401.4pt;border-style:none solid solid none;border-width:medium 1pt 1pt medium;padding:0 5.4pt;" valign="top" width="535">
<p class="MsoNormal"><span style="font-size:8pt;">The number of arguments   supplied to a script.</span></p>
</td>
</tr>
<tr>
<td style="width:41.4pt;border-color:#000000 windowtext windowtext;border-style:none solid solid;border-width:medium 1pt 1pt;padding:0 5.4pt;" valign="top" width="55">
<p class="MsoNormal"><span style="font-size:8pt;">$*</span></p>
</td>
<td style="width:401.4pt;border-style:none solid solid none;border-width:medium 1pt 1pt medium;padding:0 5.4pt;" valign="top" width="535">
<p class="MsoNormal"><span style="font-size:8pt;">All the arguments are double   quoted.</span></p>
</td>
</tr>
<tr>
<td style="width:41.4pt;border-color:#000000 windowtext windowtext;border-style:none solid solid;border-width:medium 1pt 1pt;padding:0 5.4pt;" valign="top" width="55">
<p class="MsoNormal"><span style="font-size:8pt;">$@</span></p>
</td>
<td style="width:401.4pt;border-style:none solid solid none;border-width:medium 1pt 1pt medium;padding:0 5.4pt;" valign="top" width="535">
<p class="MsoNormal"><span style="font-size:8pt;">All the arguments are   individually double quoted.</span></p>
</td>
</tr>
<tr>
<td style="width:41.4pt;border-color:#000000 windowtext windowtext;border-style:none solid solid;border-width:medium 1pt 1pt;padding:0 5.4pt;" valign="top" width="55">
<p class="MsoNormal"><span style="font-size:8pt;">$?</span></p>
</td>
<td style="width:401.4pt;border-style:none solid solid none;border-width:medium 1pt 1pt medium;padding:0 5.4pt;" valign="top" width="535">
<p class="MsoNormal"><span style="font-size:8pt;">The exit status of the last   command executed.</span></p>
</td>
</tr>
<tr>
<td style="width:41.4pt;border-color:#000000 windowtext windowtext;border-style:none solid solid;border-width:medium 1pt 1pt;padding:0 5.4pt;" valign="top" width="55">
<p class="MsoNormal"><span style="font-size:8pt;">$$</span></p>
</td>
<td style="width:401.4pt;border-style:none solid solid none;border-width:medium 1pt 1pt medium;padding:0 5.4pt;" valign="top" width="535">
<p class="MsoNormal"><span style="font-size:8pt;">The process number of the   current shell. For shell scripts, this is the process ID under which they are   executing.</span></p>
</td>
</tr>
<tr>
<td style="width:41.4pt;border-color:#000000 windowtext windowtext;border-style:none solid solid;border-width:medium 1pt 1pt;padding:0 5.4pt;" valign="top" width="55">
<p class="MsoNormal"><span style="font-size:8pt;">$!</span></p>
</td>
<td style="width:401.4pt;border-style:none solid solid none;border-width:medium 1pt 1pt medium;padding:0 5.4pt;" valign="top" width="535">
<p class="MsoNormal"><span style="font-size:8pt;">The process number of the   last background command.</span></p>
</td>
</tr>
</table>
<p>#shellmariachi</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shellmariachi.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shellmariachi.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shellmariachi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shellmariachi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shellmariachi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shellmariachi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shellmariachi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shellmariachi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shellmariachi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shellmariachi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shellmariachi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shellmariachi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shellmariachi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shellmariachi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shellmariachi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shellmariachi.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=4&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shellmariachi.wordpress.com/2007/10/09/special-shell-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51562e4003b5403ee09856feb5739454?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shellmariachi</media:title>
		</media:content>
	</item>
		<item>
		<title>setting/exporting environment variables</title>
		<link>http://shellmariachi.wordpress.com/2007/10/08/settingexporting-environment-variables/</link>
		<comments>http://shellmariachi.wordpress.com/2007/10/08/settingexporting-environment-variables/#comments</comments>
		<pubDate>Mon, 08 Oct 2007 06:29:56 +0000</pubDate>
		<dc:creator>shellmariachi</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Non shell scripting - general UNIX]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Shell scripting]]></category>
		<category><![CDATA[Shell Scripting Basic]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://shellmariachi.wordpress.com/2007/10/08/settingexporting-environment-variables/</guid>
		<description><![CDATA[– For a sh/bash/ksh shell, type: export JAVA_HOME=/opt/java_1.5 export BEA_JAVA_HOME=BEA_HOME/jrockit1.5.0_06 – For a csh/tcsh shell, type: setenv JAVA_HOME=/opt/java_1.5 setenv BEA_JAVA_HOME=BEA_HOME/jrockit1.5.0_06 For Windows: set JAVA_HOME=C:\java_1.5 set BEA_JAVA_HOME=BEA_HOME\jrockit1.5.0_06 Got it? Its &#8220;export&#8221; sh/bash/ksh. &#8220;setenv&#8221; on csh/tcsh and &#8220;set&#8221; on Windows! #shellmariachi<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=3&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="font-size:11pt;font-family:TimesNewRomanPS-BoldMT;">– </span></strong><span style="font-size:11pt;font-family:TimesNewRomanPSMT;">For a sh/bash/ksh shell, type:</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:CourierHP;">export JAVA_HOME=</span><em><span style="font-size:10pt;font-family:CourierHP-Italic;">/opt/java_1.5</span></em></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:CourierHP;">export BEA_JAVA_HOME=</span><em><span style="font-size:10pt;font-family:CourierHP-Italic;">BEA_HOME/jrockit1.5.0_06</span></em></p>
<p class="MsoNormal"><strong><span style="font-size:11pt;font-family:TimesNewRomanPS-BoldMT;">– </span></strong><span style="font-size:11pt;font-family:TimesNewRomanPSMT;">For a csh/tcsh shell, type:</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:CourierHP;">setenv </span><span style="font-size:10pt;font-family:CourierHP;">JAVA_HOME=</span><em><span style="font-size:10pt;font-family:CourierHP-Italic;">/opt/java_1.5</span></em><em><span style="font-size:10pt;font-family:CourierHP-Italic;"></span></em></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:CourierHP;">setenv BEA_JAVA_HOME=</span><em><span style="font-size:10pt;font-family:CourierHP-Italic;">BEA_HOME/jrockit1.5.0_06</span></em><span style="font-size:10pt;font-family:TimesNewRomanPSMT;"></span></p>
<p class="MsoNormal"><strong><span style="font-size:11pt;font-family:Arial-BoldMT;">For Windows:</span></strong></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:TimesNewRomanPSMT;"></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:CourierHP;">set </span><span style="font-size:10pt;font-family:CourierHP;">JAVA_HOME=</span><em><span style="font-size:10pt;font-family:CourierHP-Italic;">C:\java_1.5</span></em><span style="font-size:10pt;font-family:CourierHP;"></span><em><span style="font-size:10pt;font-family:CourierHP-Italic;"></span></em></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:CourierHP;">set BEA_JAVA_HOME=</span><em><span style="font-size:10pt;font-family:CourierHP-Italic;">BEA_HOME\jrockit1.5.0_06</span></em></p>
<p class="MsoNormal"> Got it? Its &#8220;export&#8221; sh/bash/ksh. &#8220;setenv&#8221; on csh/tcsh and &#8220;set&#8221; on Windows!</p>
<p class="MsoNormal">#shellmariachi</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shellmariachi.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shellmariachi.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shellmariachi.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shellmariachi.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shellmariachi.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shellmariachi.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shellmariachi.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shellmariachi.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shellmariachi.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shellmariachi.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shellmariachi.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shellmariachi.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shellmariachi.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shellmariachi.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shellmariachi.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shellmariachi.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=3&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shellmariachi.wordpress.com/2007/10/08/settingexporting-environment-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51562e4003b5403ee09856feb5739454?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shellmariachi</media:title>
		</media:content>
	</item>
		<item>
		<title>#! /bin/bash -e</title>
		<link>http://shellmariachi.wordpress.com/2007/10/05/hello-world/</link>
		<comments>http://shellmariachi.wordpress.com/2007/10/05/hello-world/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 12:31:07 +0000</pubDate>
		<dc:creator>shellmariachi</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Shell scripting]]></category>
		<category><![CDATA[Shell Scripting Basic]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Alrighty then! Little intro as this is the first post. This blog would deal with simple &#8220;learnings&#8221; of shell scripting, as I go forth in my new job profile where I shall be using shell scripting often. I was maintaining these facts to act as quick reference in a word document, as I have a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=1&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Alrighty then!</p>
<p>Little intro as this is the first post. This blog would deal with simple &#8220;learnings&#8221; of shell scripting, as I go forth in my new job profile where I shall be using shell scripting often. I was maintaining these facts to act as quick reference in a word document, as I have a poor memory. Then I thought why not start a blog and maybe other people can &#8220;make benefit&#8221; from it too <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So here we go.</p>
<p>Now there is this &#8220;set -e&#8221; option. This tells bash to exit the script if any statement returns a non-zero (false) value.  You should put it at the beginning of the script as:</p>
<p>#! /bin/bash -e</p>
<p>or set -e</p>
<p>or set -o errexit</p>
<p class="MsoNormal">The &#8220;make benefit&#8221; is that you can avoid the situation of cumulative effect of errors becoming harder to debug.<span style="font-size:8pt;"> </span></p>
<p>  However you can&#8217;t check $? shell variable as code won&#8217;t get there if it isn&#8217;t zero.</p>
<p>You can turn off this error checking for portions in the script by using:</p>
<p>set +e</p>
<p>command 1</p>
<p>command 2</p>
<p>command 3</p>
<p>set -e</p>
<p>Also, you can use :</p>
<p>command||true</p>
<p>if you want that this particular command&#8217;s non-zero return value shouldn&#8217;t exit the script.</p>
<p>Also, bash takes the status of last statement in a pipeline. false|true is true. To avoid this you can use:</p>
<p>set -o pipefail</p>
<p>So long!</p>
<p># shellmariachi</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shellmariachi.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shellmariachi.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shellmariachi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shellmariachi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shellmariachi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shellmariachi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shellmariachi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shellmariachi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shellmariachi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shellmariachi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shellmariachi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shellmariachi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shellmariachi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shellmariachi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shellmariachi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shellmariachi.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shellmariachi.wordpress.com&amp;blog=1850633&amp;post=1&amp;subd=shellmariachi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shellmariachi.wordpress.com/2007/10/05/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51562e4003b5403ee09856feb5739454?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shellmariachi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
