<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for Anton's Stuff</title>
	<link>http://anton.lr2.com</link>
	<description>Bashing about the blogsphere.</description>
	<pubDate>Fri, 09 May 2008 12:46:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>Comment on BASH: Split a string without &#8216;cut&#8217; or &#8216;awk&#8217; by et lux in tenebris lucet</title>
		<link>http://anton.lr2.com/archives/2006/04/10/bash-split-a-string-without-cut-or-awk/#comment-47282</link>
		<author>et lux in tenebris lucet</author>
		<pubDate>Mon, 05 Nov 2007 20:59:13 +0000</pubDate>
		<guid>http://anton.lr2.com/archives/2006/04/10/bash-split-a-string-without-cut-or-awk/#comment-47282</guid>
					<description>&lt;strong&gt;Splitting a string in bash...&lt;/strong&gt;

I found this little trick to split a string in bash, so I&#8217;m sharing. Maybe it&#8217;s obvious to some people, but I don&#8217;t do a lot of shell scripting, so it was helpful to me.
http://anton.lr2.com/archives/2006/04/10/bash-split-a-string-wit...</description>
		<content:encoded><![CDATA[<p><strong>Splitting a string in bash&#8230;</strong></p>
<p>I found this little trick to split a string in bash, so I&#8217;m sharing. Maybe it&#8217;s obvious to some people, but I don&#8217;t do a lot of shell scripting, so it was helpful to me.<br />
<a href="http://anton.lr2.com/archives/2006/04/10/bash-split-a-string-wit&#8230;" rel="nofollow">http://anton.lr2.com/archives/2006/04/10/bash-split-a-string-wit&#8230;</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on BASH: Convert Unix Timestamp to a Date by knarf</title>
		<link>http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-21945</link>
		<author>knarf</author>
		<pubDate>Sat, 17 Mar 2007 15:59:50 +0000</pubDate>
		<guid>http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-21945</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 Bananas Development Blog</title>
		<link>http://anton.lr2.com/archives/2005/03/23/read-a-file-with-bash/#comment-21664</link>
		<author>Bananas Development Blog</author>
		<pubDate>Fri, 16 Mar 2007 10:03:31 +0000</pubDate>
		<guid>http://anton.lr2.com/archives/2005/03/23/read-a-file-with-bash/#comment-21664</guid>
					<description>&lt;strong&gt;Bash Read file&lt;/strong&gt;

Hier tolle Beispiele wie man mit einem Bash Script eine Datei einliest:

Read Files in a Bash Script</description>
		<content:encoded><![CDATA[<p><strong>Bash Read file</strong></p>
<p>Hier tolle Beispiele wie man mit einem Bash Script eine Datei einliest:</p>
<p>Read Files in a Bash Script</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on read a file with bash by RJ</title>
		<link>http://anton.lr2.com/archives/2005/03/23/read-a-file-with-bash/#comment-21303</link>
		<author>RJ</author>
		<pubDate>Wed, 14 Mar 2007 18:07:21 +0000</pubDate>
		<guid>http://anton.lr2.com/archives/2005/03/23/read-a-file-with-bash/#comment-21303</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/archives/2006/04/23/led-throwies/#comment-20752</link>
		<author>R</author>
		<pubDate>Sun, 11 Mar 2007 22:15:08 +0000</pubDate>
		<guid>http://anton.lr2.com/archives/2006/04/23/led-throwies/#comment-20752</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've heard of recently. you probably won'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/archives/2005/03/29/great-sed-howto/#comment-20613</link>
		<author>psymeg</author>
		<pubDate>Sun, 11 Mar 2007 08:35:19 +0000</pubDate>
		<guid>http://anton.lr2.com/archives/2005/03/29/great-sed-howto/#comment-20613</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/archives/2005/04/10/coming-soon/#comment-19323</link>
		<author>rattus</author>
		<pubDate>Sat, 03 Mar 2007 23:24:38 +0000</pubDate>
		<guid>http://anton.lr2.com/archives/2005/04/10/coming-soon/#comment-19323</guid>
					<description>Great idea for the shuffle! The "sort" might or should be "sort -n", at least for consistency. BTW, I compared your shuffle() with a simple perl script using mainly "splice(@array, rand @array, 1)". 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>
	<item>
		<title>Comment on Yay, I&#8217;m going to SXSW! by Comanche Hill &#187; Yay! I&#8217;m going to SXSW!!!</title>
		<link>http://anton.lr2.com/archives/2007/03/01/yay-im-going-to-sxsw/#comment-19002</link>
		<author>Comanche Hill &#187; Yay! I&#8217;m going to SXSW!!!</author>
		<pubDate>Thu, 01 Mar 2007 20:54:33 +0000</pubDate>
		<guid>http://anton.lr2.com/archives/2007/03/01/yay-im-going-to-sxsw/#comment-19002</guid>
					<description>[...] The Interactive side anyway. I&#8217;m going with Anton. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] The Interactive side anyway. I&#8217;m going with Anton. [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on read a file with bash by Anton</title>
		<link>http://anton.lr2.com/archives/2005/03/23/read-a-file-with-bash/#comment-18987</link>
		<author>Anton</author>
		<pubDate>Thu, 01 Mar 2007 19:25:50 +0000</pubDate>
		<guid>http://anton.lr2.com/archives/2005/03/23/read-a-file-with-bash/#comment-18987</guid>
					<description>Ted,

If you get the 4% in a var, then you could always just split in on %, take the first part, and use a regular if to handle it.

X=$(curl -s -o - http://www.random.org/cgi-bin/checkbuf)
if [ "${X%\%*}" -get 10 ] ; then
   echo "X is more than 10%!"
fi</description>
		<content:encoded><![CDATA[<p>Ted,</p>
<p>If you get the 4% in a var, then you could always just split in on %, take the first part, and use a regular if to handle it.</p>
<p>X=$(curl -s -o - <a href="http://www.random.org/cgi-bin/checkbuf" rel="nofollow">http://www.random.org/cgi-bin/checkbuf</a>)<br />
if [ &#8220;${X%\%*}&#8221; -get 10 ] ; then<br />
   echo &#8220;X is more than 10%!&#8221;<br />
fi</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Battery Powered Altoids LED Lamp by rancy</title>
		<link>http://anton.lr2.com/archives/2005/03/26/battery-powered-altoids-led-lamp/#comment-18708</link>
		<author>rancy</author>
		<pubDate>Tue, 27 Feb 2007 13:03:56 +0000</pubDate>
		<guid>http://anton.lr2.com/archives/2005/03/26/battery-powered-altoids-led-lamp/#comment-18708</guid>
					<description>Dear sir/madam,

We have been devoted to a full series of LED lamps since 1994, now we can supply you different kinds of LED lamps. We fully carry out ISO9000 International Quality Control System. All our effort is to ensure every product is excellent. If you are interested in, contact me to know details, thanks.
We can manufacture according to your desire.

Regards,
Rancy
Shanghai erex Co.,Ltd
Tel: +86-21-58609575
Fax: +86-21-54154130
Email: info@erex.com.cn
Website: www.erex.com.cn/</description>
		<content:encoded><![CDATA[<p>Dear sir/madam,</p>
<p>We have been devoted to a full series of LED lamps since 1994, now we can supply you different kinds of LED lamps. We fully carry out ISO9000 International Quality Control System. All our effort is to ensure every product is excellent. If you are interested in, contact me to know details, thanks.<br />
We can manufacture according to your desire.</p>
<p>Regards,<br />
Rancy<br />
Shanghai erex Co.,Ltd<br />
Tel: +86-21-58609575<br />
Fax: +86-21-54154130<br />
Email: <a href="mailto:info@erex.com.cn">info@erex.com.cn</a><br />
Website: <a href="http://www.erex.com.cn/" rel="nofollow">www.erex.com.cn/</a></p>
]]></content:encoded>
				</item>
</channel>
</rss>
