<?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: The last positional parameter in bash</title>
	<atom:link href="http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/</link>
	<description>Brian Pontarelli</description>
	<lastBuildDate>Wed, 08 Feb 2012 15:34:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: ol</title>
		<link>http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-132753</link>
		<dc:creator>ol</dc:creator>
		<pubDate>Sun, 22 May 2011 04:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-132753</guid>
		<description>last=&quot;${!#}&quot;</description>
		<content:encoded><![CDATA[<p>last=&#8221;${!#}&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marco</title>
		<link>http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-127025</link>
		<dc:creator>marco</dc:creator>
		<pubDate>Fri, 12 Nov 2010 02:40:58 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-127025</guid>
		<description>function cu() { eval &#039;lasta=$&#039;$#&#039;;&#039;; echo $last; };cu a b c daaa</description>
		<content:encoded><![CDATA[<p>function cu() { eval &#8216;lasta=$&#8217;$#&#8217;;'; echo $last; };cu a b c daaa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nyighaj</title>
		<link>http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-79745</link>
		<dc:creator>nyighaj</dc:creator>
		<pubDate>Sun, 10 May 2009 12:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-79745</guid>
		<description>last=$(echo $@ &#124;cut -d\  -f $#)</description>
		<content:encoded><![CDATA[<p>last=$(echo $@ |cut -d\  -f $#)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nyighaj</title>
		<link>http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-79744</link>
		<dc:creator>nyighaj</dc:creator>
		<pubDate>Sun, 10 May 2009 12:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-79744</guid>
		<description>$(echo $@ &#124;cut -d\  -f $#)</description>
		<content:encoded><![CDATA[<p>$(echo $@ |cut -d\  -f $#)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomas Pospisek</title>
		<link>http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-35168</link>
		<dc:creator>Tomas Pospisek</dc:creator>
		<pubDate>Wed, 05 Nov 2008 22:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-35168</guid>
		<description>Crap. It&#039;s the following that works better:

eval “last=\${$#}”</description>
		<content:encoded><![CDATA[<p>Crap. It&#8217;s the following that works better:</p>
<p>eval “last=\${$#}”</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomas Pospisek</title>
		<link>http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-35167</link>
		<dc:creator>Tomas Pospisek</dc:creator>
		<pubDate>Wed, 05 Nov 2008 22:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-35167</guid>
		<description>The following works better:

eval &quot;last=\\${$#}&quot;</description>
		<content:encoded><![CDATA[<p>The following works better:</p>
<p>eval &#8220;last=\\${$#}&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rocket</title>
		<link>http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-5606</link>
		<dc:creator>rocket</dc:creator>
		<pubDate>Wed, 05 Dec 2007 23:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/2007/11/27/the-last-positional-parameter-in-bash/#comment-5606</guid>
		<description>To get the REST of the parameters:

eval &quot;rest=\&quot;`for d in \`seq 1 \$[\$# - 1]\`; do echo -n \\\$\$d\ ; done`\&quot;&quot;</description>
		<content:encoded><![CDATA[<p>To get the REST of the parameters:</p>
<p>eval &#8220;rest=\&#8221;`for d in \`seq 1 \$[\$# - 1]\`; do echo -n \\\$\$d\ ; done`\&#8221;"</p>
]]></content:encoded>
	</item>
</channel>
</rss>

