<?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: Unix shell variable tricks</title>
	<atom:link href="http://www.briandowney.net/blog/2007/01/11/unix-shell-variable-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.briandowney.net/blog/2007/01/11/unix-shell-variable-tricks/</link>
	<description>Technical musings of an entrepreneur.</description>
	<lastBuildDate>Fri, 13 Jan 2012 00:37:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: John</title>
		<link>http://www.briandowney.net/blog/2007/01/11/unix-shell-variable-tricks/comment-page-1/#comment-125</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 07 Feb 2007 15:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.briandowney.net/blog/2007/01/11/unix-shell-variable-tricks/#comment-125</guid>
		<description>Another interesting &quot;hack&quot; using variable tricks with ksh;

I wanted to get a filename less the extension ... eg. with &quot;myfile.txt&quot; I wanted it to return &quot;myfile&quot; .. again without the massive spawning to count backwards for a &quot;.&quot; ....

fullfile=myfile.txt
name_noext=${fullfile%%.*}

Fantastic ;-)
But why is the documentation of these features so difficult to find ?</description>
		<content:encoded><![CDATA[<p>Another interesting &#8220;hack&#8221; using variable tricks with ksh;</p>
<p>I wanted to get a filename less the extension &#8230; eg. with &#8220;myfile.txt&#8221; I wanted it to return &#8220;myfile&#8221; .. again without the massive spawning to count backwards for a &#8220;.&#8221; &#8230;.</p>
<p>fullfile=myfile.txt<br />
name_noext=${fullfile%%.*}</p>
<p>Fantastic <img src='http://www.briandowney.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
But why is the documentation of these features so difficult to find ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

