<?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: How to remove the last character of a string</title>
	<atom:link href="http://www.top-web-solutions.com/how-to-remove-the-last-character-of-a-string.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.top-web-solutions.com/how-to-remove-the-last-character-of-a-string.html</link>
	<description>cPanel Control Panel, Fantastico Autoinstaller, Apache Web server, Gentoo Linux</description>
	<lastBuildDate>Wed, 21 Sep 2011 08:59:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Sam</title>
		<link>http://www.top-web-solutions.com/how-to-remove-the-last-character-of-a-string.html/comment-page-1#comment-216</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Mon, 22 Sep 2008 21:28:15 +0000</pubDate>
		<guid isPermaLink="false">http://top-web-solutions.com/how-to-remove-the-last-character-of-a-string/#comment-216</guid>
		<description>I need to remove several characters from the end of a line, how do I do it?  For example, let&#039;s remove two letters from JJohnDoe and leaving JJohnD.  Any suggestions?</description>
		<content:encoded><![CDATA[<p>I need to remove several characters from the end of a line, how do I do it?  For example, let&#8217;s remove two letters from JJohnDoe and leaving JJohnD.  Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Pickett</title>
		<link>http://www.top-web-solutions.com/how-to-remove-the-last-character-of-a-string.html/comment-page-1#comment-215</link>
		<dc:creator>Stephen Pickett</dc:creator>
		<pubDate>Fri, 01 Aug 2008 14:27:54 +0000</pubDate>
		<guid isPermaLink="false">http://top-web-solutions.com/how-to-remove-the-last-character-of-a-string/#comment-215</guid>
		<description>I needed to remove the first character, so I adapted Alan&#039;s code (by the way, thanks Alan!):

x=JJohnDoe;
echo $x
x=$(echo ${x:1});
echo $x</description>
		<content:encoded><![CDATA[<p>I needed to remove the first character, so I adapted Alan&#8217;s code (by the way, thanks Alan!):</p>
<p>x=JJohnDoe;<br />
echo $x<br />
x=$(echo ${x:1});<br />
echo $x</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flash gamer</title>
		<link>http://www.top-web-solutions.com/how-to-remove-the-last-character-of-a-string.html/comment-page-1#comment-214</link>
		<dc:creator>flash gamer</dc:creator>
		<pubDate>Wed, 30 Jul 2008 00:55:12 +0000</pubDate>
		<guid isPermaLink="false">http://top-web-solutions.com/how-to-remove-the-last-character-of-a-string/#comment-214</guid>
		<description>thanks works great</description>
		<content:encoded><![CDATA[<p>thanks works great</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alan</title>
		<link>http://www.top-web-solutions.com/how-to-remove-the-last-character-of-a-string.html/comment-page-1#comment-213</link>
		<dc:creator>alan</dc:creator>
		<pubDate>Wed, 06 Feb 2008 20:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://top-web-solutions.com/how-to-remove-the-last-character-of-a-string/#comment-213</guid>
		<description>On a file you could just run:

sed -n &#039;s/.$//p&#039; filename.txt

to print each line in the file without the last character. I don&#039;t see much usage in it though :)</description>
		<content:encoded><![CDATA[<p>On a file you could just run:</p>
<p>sed -n &#8216;s/.$//p&#8217; filename.txt</p>
<p>to print each line in the file without the last character. I don&#8217;t see much usage in it though :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdoulaye Siby</title>
		<link>http://www.top-web-solutions.com/how-to-remove-the-last-character-of-a-string.html/comment-page-1#comment-212</link>
		<dc:creator>Abdoulaye Siby</dc:creator>
		<pubDate>Mon, 14 Jan 2008 02:21:49 +0000</pubDate>
		<guid isPermaLink="false">http://top-web-solutions.com/how-to-remove-the-last-character-of-a-string/#comment-212</guid>
		<description>People would rather expect to have something that can apply to any last character. Whether it is an a or any other letter.

This code will do it

x=JohnDoee;
echo $x
x=$(echo $x &#124; rev); x=$(echo ${x:1} &#124; rev);
echo $x

Enjoy</description>
		<content:encoded><![CDATA[<p>People would rather expect to have something that can apply to any last character. Whether it is an a or any other letter.</p>
<p>This code will do it</p>
<p>x=JohnDoee;<br />
echo $x<br />
x=$(echo $x | rev); x=$(echo ${x:1} | rev);<br />
echo $x</p>
<p>Enjoy</p>
]]></content:encoded>
	</item>
</channel>
</rss>

