<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lily Avida &#187; programming</title>
	<atom:link href="http://eavida.com/wordpress/category/technology/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://eavida.com/wordpress</link>
	<description>Making the web better, one page at a time</description>
	<lastBuildDate>Sun, 22 Jan 2012 04:17:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>My Unix Commands</title>
		<link>http://eavida.com/wordpress/2011/01/my-unix-commands/</link>
		<comments>http://eavida.com/wordpress/2011/01/my-unix-commands/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 03:16:21 +0000</pubDate>
		<dc:creator>Lily Avida</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://eavida.com/wordpress/?p=123</guid>
		<description><![CDATA[Find text within files in sub directories find . -type f -exec grep -il &#8220;text string&#8221; {} \; Change the photo files name: for f in 100_*.jpg; do mv $f ${f/100_/p}; done Add an &#8216;s&#8217; to thumbnail: for f in p*.jpg; do mv $f ${f/./s.}; done List all files including sub directories into file &#8216;a.txt&#8217;: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Find </strong>text within files in sub directories<br />
find . -type f -exec grep -il &#8220;text string&#8221; {} \;</p>
<p><strong>Change the photo files name</strong>:<br />
for f in 100_*.jpg; do mv $f ${f/100_/p}; done</p>
<p>Add an &#8216;s&#8217; to thumbnail:<br />
for f in p*.jpg; do mv $f ${f/./s.}; done</p>
<p>List all files including sub directories into file &#8216;a.txt&#8217;:<br />
ls -R &gt; a.txt</p>
<p>Remove the &#8216;s&#8217; character from the result:<br />
sed -e &#8216;s/s//g&#8217; a.txt &gt; b.txt</p>
<p>Remove duplicates:<br />
uniq a.txt &gt; b.txt</p>
<p>List directories in reverse order:<br />
ls -r &gt; &#8216;c.txt&#8217;</p>
<p>One fine swoop:</p>
<p><code>ls -R &gt; a.txt; sed -e 's/s//g' a.txt &gt; b.txt; uniq b.txt &gt; c.txt; sed -e "s/.jpg/' =&gt; Array\(2009,  2, 1, \" \"),/g" c.txt &gt; d.txt; sed -e "s/100_/\'100_/g" d.txt &gt; e.txt;</code></p>
<p><span style="color: #999999;">OLD CODE:<br />
<code>ls -R &gt; a.txt; sed -e 's/s//g' a.txt &gt; b.txt; uniq b.txt &gt; c.txt; sed -e "s/.jpg/'\' =&gt; Array\(2008,  12, 1, \" \"),/g" c.txt &gt; d.txt; sed "s/p/\'/g" d.txt &gt; e.txt; sed ’s/Thumb.db//g’   e.txt &gt; final.txt; ls -r &gt; dirs.txt;</code></span></p>
<p>Create Direcotories a, b, c:<br />
mkdir a; mkdir b; mkdir c</p>
]]></content:encoded>
			<wfw:commentRss>http://eavida.com/wordpress/2011/01/my-unix-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress user registration plugin &#8211; where is the Typo3 counterpart?</title>
		<link>http://eavida.com/wordpress/2010/04/wordpress-user-registratoin-plugin-where-is-the-typo3-counterpart/</link>
		<comments>http://eavida.com/wordpress/2010/04/wordpress-user-registratoin-plugin-where-is-the-typo3-counterpart/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 03:53:16 +0000</pubDate>
		<dc:creator>Lily Avida</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://eavida.com/wordpress/?p=491</guid>
		<description><![CDATA[I have spent a large portion of today fighting the good fight with Typo3. Typo3 won the battle. I am sure if I knew what I am doing it would have been an easy task, but since I am still fumbling with that CMS, it was very hard and didn&#8217;t yield anything like what I [...]]]></description>
			<content:encoded><![CDATA[<p>I have spent a large portion of today fighting the good fight with Typo3. Typo3 won the battle. I am sure if I knew what I am doing it would have been an easy task, but since I am still fumbling with that CMS, it was very hard and didn&#8217;t yield anything like what I hoped it would do. Bummer!</p>
<p>Out of morbid curiosity I looked for a similar plugin in WordPress and I found <a href="http://wordpress.org/extend/plugins/register-plus/">this one</a>. Switching to WordPress looks like a brilliant idea right now&#8230; Sob! registration </p>
]]></content:encoded>
			<wfw:commentRss>http://eavida.com/wordpress/2010/04/wordpress-user-registratoin-plugin-where-is-the-typo3-counterpart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASCII characters I love to use</title>
		<link>http://eavida.com/wordpress/2009/12/ascii-characters-i-love-to-use/</link>
		<comments>http://eavida.com/wordpress/2009/12/ascii-characters-i-love-to-use/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 23:26:04 +0000</pubDate>
		<dc:creator>lily</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://eavida.com/wordpress/?p=447</guid>
		<description><![CDATA[Here is a list of ASCII characters I use often enough to create an entry on the blog, but not often enough to remember them off the top of my head. &#38;#145; ‘ Single beginning quotation mark &#38;#146; ’ Single ending quotation mark &#38;#147; “ Double beginning quotation mark &#38;#148; ” Double ending quotation mark [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a list of ASCII characters I use often enough to create an entry on the blog, but not often enough to remember them off the top of my head.</p>
<pre>&amp;#145; ‘ Single beginning quotation mark
&amp;#146; ’ Single ending quotation mark
&amp;#147; “ Double beginning quotation mark
&amp;#148; ” Double ending quotation mark
&amp;#151; — Em dash
&amp;#153; ™ Trade mark
&amp;#176; ° Degree sign
&amp;#188; ¼ Fraction one quarter
&amp;#189; ½ Fraction one half
&amp;#190; ¾ Fraction three quarters</pre>
<p>Links:<br />
<a href="http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters" target="_blank">Wikpedia: Ascii :: printable characters</a></p>
]]></content:encoded>
			<wfw:commentRss>http://eavida.com/wordpress/2009/12/ascii-characters-i-love-to-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

