<?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: Shell variables</title>
	<atom:link href="http://blog.macromates.com/2005/shell-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.macromates.com/2005/shell-variables/</link>
	<description>TextMate and OS X</description>
	<lastBuildDate>Wed, 03 Feb 2010 16:53:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Yves Van Walle</title>
		<link>http://blog.macromates.com/2005/shell-variables/#comment-3314</link>
		<dc:creator>Yves Van Walle</dc:creator>
		<pubDate>Wed, 02 Jul 2008 10:40:57 +0000</pubDate>
		<guid isPermaLink="false">/?p=53#comment-3314</guid>
		<description>&lt;p&gt;Excelent! just what I looking for!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Excelent! just what I looking for!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dean</title>
		<link>http://blog.macromates.com/2005/shell-variables/#comment-2922</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Wed, 28 Nov 2007 22:42:15 +0000</pubDate>
		<guid isPermaLink="false">/?p=53#comment-2922</guid>
		<description>&lt;p&gt;Nice work Allan, just what I was looking for, had no idea where to start with the search/replace stuff. Nicely written, easy/clear to read :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice work Allan, just what I was looking for, had no idea where to start with the search/replace stuff. Nicely written, easy/clear to read :-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Allan Odgaard</title>
		<link>http://blog.macromates.com/2005/shell-variables/#comment-1829</link>
		<dc:creator>Allan Odgaard</dc:creator>
		<pubDate>Thu, 09 Nov 2006 03:51:18 +0000</pubDate>
		<guid isPermaLink="false">/?p=53#comment-1829</guid>
		<description>&lt;p&gt;kyle: where do you do this (bash, TextMate, …)? How do you output the value? And does ‘echo ${TM_FILEPATH}’ alone output something?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>kyle: where do you do this (bash, TextMate, …)? How do you output the value? And does ‘echo ${TM_FILEPATH}’ alone output something?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: kyle</title>
		<link>http://blog.macromates.com/2005/shell-variables/#comment-1827</link>
		<dc:creator>kyle</dc:creator>
		<pubDate>Wed, 08 Nov 2006 20:41:30 +0000</pubDate>
		<guid isPermaLink="false">/?p=53#comment-1827</guid>
		<description>&lt;p&gt;I can&#039;t get any of this to work...&lt;/p&gt;

&lt;p&gt;i do the ${TM_FILEPATH/Users/Home}
and nothing shows up..&lt;/p&gt;

&lt;p&gt;can someone send me a same script that actually works&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I can&#039;t get any of this to work&#8230;</p>

<p>i do the ${TM_FILEPATH/Users/Home}
and nothing shows up..</p>

<p>can someone send me a same script that actually works</p>]]></content:encoded>
	</item>
	<item>
		<title>By: marios</title>
		<link>http://blog.macromates.com/2005/shell-variables/#comment-1611</link>
		<dc:creator>marios</dc:creator>
		<pubDate>Sat, 07 Oct 2006 23:59:50 +0000</pubDate>
		<guid isPermaLink="false">/?p=53#comment-1611</guid>
		<description>&lt;p&gt;Terrific, just came across this, thank you so much Allan.
I just ported some of these excellent examples over to a new Bash Tutorial Bundle that I created, so I can memorize the Syntax a little better and tool-tip test, what I&#039;m doing.&lt;/p&gt;

&lt;p&gt;regards, marios&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Terrific, just came across this, thank you so much Allan.
I just ported some of these excellent examples over to a new Bash Tutorial Bundle that I created, so I can memorize the Syntax a little better and tool-tip test, what I&#039;m doing.</p>

<p>regards, marios</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Allan Odgaard</title>
		<link>http://blog.macromates.com/2005/shell-variables/#comment-1589</link>
		<dc:creator>Allan Odgaard</dc:creator>
		<pubDate>Sun, 01 Oct 2006 00:54:32 +0000</pubDate>
		<guid isPermaLink="false">/?p=53#comment-1589</guid>
		<description>&lt;p&gt;marios: If you want to cut the extension of a filename (contained in a variable) you can do something like &lt;code&gt;&quot;${VARIABLE%.*}&quot;&lt;/code&gt;. You would combine that with &lt;code&gt;basename&lt;/code&gt; or have to do two variable replacements to also cut the directory part of the path.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>marios: If you want to cut the extension of a filename (contained in a variable) you can do something like <code>"${VARIABLE%.*}"</code>. You would combine that with <code>basename</code> or have to do two variable replacements to also cut the directory part of the path.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: marios</title>
		<link>http://blog.macromates.com/2005/shell-variables/#comment-1587</link>
		<dc:creator>marios</dc:creator>
		<pubDate>Sun, 01 Oct 2006 00:24:49 +0000</pubDate>
		<guid isPermaLink="false">/?p=53#comment-1587</guid>
		<description>&lt;p&gt;What I am trying to figure out is, what would be the best way to shop off
both the suffix and the file-path , to retain just the filename without extension.
I had a look at the man page, but couldn&#039;t find any special notation for such a task.&lt;/p&gt;

&lt;p&gt;regards, marios&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What I am trying to figure out is, what would be the best way to shop off
both the suffix and the file-path , to retain just the filename without extension.
I had a look at the man page, but couldn&#039;t find any special notation for such a task.</p>

<p>regards, marios</p>]]></content:encoded>
	</item>
	<item>
		<title>By: domenico</title>
		<link>http://blog.macromates.com/2005/shell-variables/#comment-439</link>
		<dc:creator>domenico</dc:creator>
		<pubDate>Mon, 26 Sep 2005 16:22:05 +0000</pubDate>
		<guid isPermaLink="false">/?p=53#comment-439</guid>
		<description>&lt;p&gt;allan pwnz us all :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>allan pwnz us all :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: zzen</title>
		<link>http://blog.macromates.com/2005/shell-variables/#comment-438</link>
		<dc:creator>zzen</dc:creator>
		<pubDate>Mon, 26 Sep 2005 13:07:34 +0000</pubDate>
		<guid isPermaLink="false">/?p=53#comment-438</guid>
		<description>&lt;p&gt;Excellent tips, thank you! Geez  - and I thought I knew a lot about shells...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Excellent tips, thank you! Geez  &#8211; and I thought I knew a lot about shells&#8230;</p>]]></content:encoded>
	</item>
</channel>
</rss>

