<?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 for Anton\'s Stuff</title>
	<atom:link href="http://anton.lr2.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://anton.lr2.com</link>
	<description>Just another LR2 Blogs weblog</description>
	<lastBuildDate>Fri, 21 Nov 2008 21:46:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on BASH: Split a string without &#8216;cut&#8217; or &#8216;awk&#8217; by Anon</title>
		<link>http://anton.lr2.com/2006/04/10/bash-split-a-string-without-cut-or-awk/comment-page-1/#comment-259</link>
		<dc:creator>Anon</dc:creator>
		<pubDate>Fri, 21 Nov 2008 21:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/10/bash-split-a-string-without-cut-or-awk/#comment-259</guid>
		<description>Thuktun: If you double the % or #, then it matches as few as it can instead of as much as it can. Example:

&gt; T=a,b,c,d
&gt; echo ${T%%,*}
a
&gt; echo ${T%,*}
a,b,c</description>
		<content:encoded><![CDATA[<p>Thuktun: If you double the % or #, then it matches as few as it can instead of as much as it can. Example:</p>
<p>&gt; T=a,b,c,d<br />
&gt; echo ${T%%,*}<br />
a<br />
&gt; echo ${T%,*}<br />
a,b,c</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on BASH: Split a string without &#8216;cut&#8217; or &#8216;awk&#8217; by rich</title>
		<link>http://anton.lr2.com/2006/04/10/bash-split-a-string-without-cut-or-awk/comment-page-1/#comment-258</link>
		<dc:creator>rich</dc:creator>
		<pubDate>Tue, 18 Nov 2008 17:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/10/bash-split-a-string-without-cut-or-awk/#comment-258</guid>
		<description>Here&#039;s how you could use multiple delimiters.. This is messy and I think there&#039;s a better way but I havent figured it out yet.

#!/bin/bash

line=&#039;content,100,2&#039;




content=${line%%,*}

delay=${line#*,}

delay=${delay%,*}

instance=${line##*,}

echo $content

echo $delay

echo $instance



I would read more here: http://linuxgazette.net/issue18/bash.html</description>
		<content:encoded><![CDATA[<p>Here&#8217;s how you could use multiple delimiters.. This is messy and I think there&#8217;s a better way but I havent figured it out yet.</p>
<p>#!/bin/bash</p>
<p>line=&#8217;content,100,2&#8242;</p>
<p>content=${line%%,*}</p>
<p>delay=${line#*,}</p>
<p>delay=${delay%,*}</p>
<p>instance=${line##*,}</p>
<p>echo $content</p>
<p>echo $delay</p>
<p>echo $instance</p>
<p>I would read more here: <a href="http://linuxgazette.net/issue18/bash.html" rel="nofollow">http://linuxgazette.net/issue18/bash.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on BASH: Split a string without &#8216;cut&#8217; or &#8216;awk&#8217; by Thuktun</title>
		<link>http://anton.lr2.com/2006/04/10/bash-split-a-string-without-cut-or-awk/comment-page-1/#comment-249</link>
		<dc:creator>Thuktun</dc:creator>
		<pubDate>Wed, 05 Nov 2008 17:59:44 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/10/bash-split-a-string-without-cut-or-awk/#comment-249</guid>
		<description>Is there a way to get this to work with more than once delimiter present?</description>
		<content:encoded><![CDATA[<p>Is there a way to get this to work with more than once delimiter present?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on read a file with bash by admin</title>
		<link>http://anton.lr2.com/2005/03/23/read-a-file-with-bash/comment-page-1/#comment-248</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 31 Oct 2008 13:42:25 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2005/03/23/read-a-file-with-bash/#comment-248</guid>
		<description>/tmp/file with space.txt is listed above and it has more than one whitespace.</description>
		<content:encoded><![CDATA[<p>/tmp/file with space.txt is listed above and it has more than one whitespace.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on read a file with bash by michelek</title>
		<link>http://anton.lr2.com/2005/03/23/read-a-file-with-bash/comment-page-1/#comment-247</link>
		<dc:creator>michelek</dc:creator>
		<pubDate>Thu, 30 Oct 2008 11:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2005/03/23/read-a-file-with-bash/#comment-247</guid>
		<description>hi,
what if file names with more than one whitespace are listed?

m</description>
		<content:encoded><![CDATA[<p>hi,<br />
what if file names with more than one whitespace are listed?</p>
<p>m</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on BASH: Convert Unix Timestamp to a Date by knarf</title>
		<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/comment-page-1/#comment-180</link>
		<dc:creator>knarf</dc:creator>
		<pubDate>Sat, 17 Mar 2007 15:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-180</guid>
		<description>date -d @1000000042</description>
		<content:encoded><![CDATA[<p>date -d @1000000042</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on read a file with bash by RJ</title>
		<link>http://anton.lr2.com/2005/03/23/read-a-file-with-bash/comment-page-1/#comment-56</link>
		<dc:creator>RJ</dc:creator>
		<pubDate>Wed, 14 Mar 2007 18:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2005/03/23/read-a-file-with-bash/#comment-56</guid>
		<description>Anton,
Love the tutorial, great stuff and very helpful. I do have a question however. Suppose I am wanting to read specific contents within a text file like name, address, phone, etc... and put it into another file to archive. How do I read the file using Bash and make it look for keywords to recognize what I need it to read? (hope that makes sense)  =)</description>
		<content:encoded><![CDATA[<p>Anton,<br />
Love the tutorial, great stuff and very helpful. I do have a question however. Suppose I am wanting to read specific contents within a text file like name, address, phone, etc&#8230; and put it into another file to archive. How do I read the file using Bash and make it look for keywords to recognize what I need it to read? (hope that makes sense)  =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on LED Throwies by R</title>
		<link>http://anton.lr2.com/2006/04/23/led-throwies/comment-page-1/#comment-202</link>
		<dc:creator>R</dc:creator>
		<pubDate>Sun, 11 Mar 2007 22:15:08 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/23/led-throwies/#comment-202</guid>
		<description>I think its a great idea, if i can get hold of the parts that cheaply over hear in Endland, then i think i might have a go. it seems like a really interesting way to create art in public places. i always like playing with new mediums, and this sound like one of the more inventive ideas i&#039;ve heard of recently. you probably won&#039;t get this cos the last update was last year, but thanks anyway. Rxx</description>
		<content:encoded><![CDATA[<p>I think its a great idea, if i can get hold of the parts that cheaply over hear in Endland, then i think i might have a go. it seems like a really interesting way to create art in public places. i always like playing with new mediums, and this sound like one of the more inventive ideas i&#8217;ve heard of recently. you probably won&#8217;t get this cos the last update was last year, but thanks anyway. Rxx</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on great sed howto by psymeg</title>
		<link>http://anton.lr2.com/2005/03/29/great-sed-howto/comment-page-1/#comment-92</link>
		<dc:creator>psymeg</dc:creator>
		<pubDate>Sun, 11 Mar 2007 08:35:19 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2005/03/29/great-sed-howto/#comment-92</guid>
		<description>Thanks for posting that. 300 files to tidy up...</description>
		<content:encoded><![CDATA[<p>Thanks for posting that. 300 files to tidy up&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on coming soon by rattus</title>
		<link>http://anton.lr2.com/2005/04/10/coming-soon/comment-page-1/#comment-106</link>
		<dc:creator>rattus</dc:creator>
		<pubDate>Sat, 03 Mar 2007 23:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2005/04/10/coming-soon/#comment-106</guid>
		<description>Great idea for the shuffle! The &quot;sort&quot; might or should be &quot;sort -n&quot;, at least for consistency. BTW, I compared your shuffle() with a simple perl script using mainly &quot;splice(@array, rand @array, 1)&quot;. The perl shuffles 40k lines in 0.5 seconds whereas your shuffle() takes 8.2 seconds on a 2.4 GHz Xeon. Of course, the difference is of less importance when the number of lines is lower.</description>
		<content:encoded><![CDATA[<p>Great idea for the shuffle! The &#8220;sort&#8221; might or should be &#8220;sort -n&#8221;, at least for consistency. BTW, I compared your shuffle() with a simple perl script using mainly &#8220;splice(@array, rand @array, 1)&#8221;. The perl shuffles 40k lines in 0.5 seconds whereas your shuffle() takes 8.2 seconds on a 2.4 GHz Xeon. Of course, the difference is of less importance when the number of lines is lower.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
