<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Bash String Manipulation Examples &#8211; Length, Substring, Find and Replace</title>
	<atom:link href="http://www.thegeekstuff.com/2010/07/bash-string-manipulation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2010/07/bash-string-manipulation/</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<lastBuildDate>Thu, 09 Feb 2012 11:52:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Tahir</title>
		<link>http://www.thegeekstuff.com/2010/07/bash-string-manipulation/comment-page-1/#comment-132182</link>
		<dc:creator>Tahir</dc:creator>
		<pubDate>Fri, 14 Oct 2011 13:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=5264#comment-132182</guid>
		<description>Thanks a lot !!</description>
		<content:encoded><![CDATA[<p>Thanks a lot !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bhaskar</title>
		<link>http://www.thegeekstuff.com/2010/07/bash-string-manipulation/comment-page-1/#comment-119540</link>
		<dc:creator>Bhaskar</dc:creator>
		<pubDate>Wed, 27 Jul 2011 09:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=5264#comment-119540</guid>
		<description>Thanks a lot for scripts saved my day</description>
		<content:encoded><![CDATA[<p>Thanks a lot for scripts saved my day</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mukesh Kumar Bhansali</title>
		<link>http://www.thegeekstuff.com/2010/07/bash-string-manipulation/comment-page-1/#comment-116163</link>
		<dc:creator>Mukesh Kumar Bhansali</dc:creator>
		<pubDate>Tue, 05 Jul 2011 09:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=5264#comment-116163</guid>
		<description>Very Good Article such that I saved its URL for future refrences if I need &amp; Forget.</description>
		<content:encoded><![CDATA[<p>Very Good Article such that I saved its URL for future refrences if I need &amp; Forget.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smikler</title>
		<link>http://www.thegeekstuff.com/2010/07/bash-string-manipulation/comment-page-1/#comment-113885</link>
		<dc:creator>smikler</dc:creator>
		<pubDate>Wed, 22 Jun 2011 12:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=5264#comment-113885</guid>
		<description>Thanks a lot for script!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philluder</title>
		<link>http://www.thegeekstuff.com/2010/07/bash-string-manipulation/comment-page-1/#comment-60709</link>
		<dc:creator>philluder</dc:creator>
		<pubDate>Thu, 26 Aug 2010 22:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=5264#comment-60709</guid>
		<description>If you use bash 4.x you can source the oobash. A string lib written in bash with oo-style:

http://sourceforge.net/projects/oobash/

String is the constructor function:

    String a abcda

    a.indexOf a

    0

    a.lastIndexOf a

    4

    a.indexOf da

    3

There are many &quot;methods&quot; more to work with strings in your scripts:

-base64Decode      -base64Encode  -capitalize        -center            
-charAt            -concat        -contains          -count             
-endsWith          -equals        -equalsIgnoreCase  -reverse           
-hashCode          -indexOf       -isAlnum           -isAlpha           
-isAscii           -isDigit       -isEmpty           -isHexDigit        
-isLowerCase       -isSpace       -isPrintable       -isUpperCase       
-isVisible         -lastIndexOf   -length            -matches           
-replaceAll        -replaceFirst  -startsWith        -substring         
-swapCase          -toLowerCase   -toString          -toUpperCase       
-trim              -zfill</description>
		<content:encoded><![CDATA[<p>If you use bash 4.x you can source the oobash. A string lib written in bash with oo-style:</p>
<p><a href="http://sourceforge.net/projects/oobash/" rel="nofollow">http://sourceforge.net/projects/oobash/</a></p>
<p>String is the constructor function:</p>
<p>    String a abcda</p>
<p>    a.indexOf a</p>
<p>    0</p>
<p>    a.lastIndexOf a</p>
<p>    4</p>
<p>    a.indexOf da</p>
<p>    3</p>
<p>There are many &#8220;methods&#8221; more to work with strings in your scripts:</p>
<p>-base64Decode      -base64Encode  -capitalize        -center<br />
-charAt            -concat        -contains          -count<br />
-endsWith          -equals        -equalsIgnoreCase  -reverse<br />
-hashCode          -indexOf       -isAlnum           -isAlpha<br />
-isAscii           -isDigit       -isEmpty           -isHexDigit<br />
-isLowerCase       -isSpace       -isPrintable       -isUpperCase<br />
-isVisible         -lastIndexOf   -length            -matches<br />
-replaceAll        -replaceFirst  -startsWith        -substring<br />
-swapCase          -toLowerCase   -toString          -toUpperCase<br />
-trim              -zfill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kafi</title>
		<link>http://www.thegeekstuff.com/2010/07/bash-string-manipulation/comment-page-1/#comment-60427</link>
		<dc:creator>Kafi</dc:creator>
		<pubDate>Tue, 24 Aug 2010 09:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=5264#comment-60427</guid>
		<description>Thanks man</description>
		<content:encoded><![CDATA[<p>Thanks man</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Osborn</title>
		<link>http://www.thegeekstuff.com/2010/07/bash-string-manipulation/comment-page-1/#comment-55915</link>
		<dc:creator>Osborn</dc:creator>
		<pubDate>Mon, 26 Jul 2010 04:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=5264#comment-55915</guid>
		<description>This is really helpful for me. Great!</description>
		<content:encoded><![CDATA[<p>This is really helpful for me. Great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roko</title>
		<link>http://www.thegeekstuff.com/2010/07/bash-string-manipulation/comment-page-1/#comment-55624</link>
		<dc:creator>roko</dc:creator>
		<pubDate>Sat, 24 Jul 2010 13:11:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=5264#comment-55624</guid>
		<description>great! thanks a lot for all theses tricks and explanations !</description>
		<content:encoded><![CDATA[<p>great! thanks a lot for all theses tricks and explanations !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: balmar</title>
		<link>http://www.thegeekstuff.com/2010/07/bash-string-manipulation/comment-page-1/#comment-55588</link>
		<dc:creator>balmar</dc:creator>
		<pubDate>Sat, 24 Jul 2010 05:52:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=5264#comment-55588</guid>
		<description>This is incredibly useful, thanks! You didn&#039;t close the braces at &quot;Replace beginning and end&quot;, and in Example 3 the echo doesn&#039;t contain &quot;After deletion of shortest match from front/back:&quot;.</description>
		<content:encoded><![CDATA[<p>This is incredibly useful, thanks! You didn&#8217;t close the braces at &#8220;Replace beginning and end&#8221;, and in Example 3 the echo doesn&#8217;t contain &#8220;After deletion of shortest match from front/back:&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.thegeekstuff.com

Served from: www.thegeekstuff.com @ 2012-02-09 11:51:28 -->
