<?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>Parolski.com &#187; shell</title>
	<atom:link href="http://www.parolski.com/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.parolski.com</link>
	<description>Faith, Solaris, and Chicken Korma, by Anton Parol</description>
	<lastBuildDate>Fri, 14 Oct 2011 11:16:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>The under appreciated bourne shell &#8220;:&#8221; operator</title>
		<link>http://www.parolski.com/2010/04/27/the-under-appreciated-bourne-shell-operator/</link>
		<comments>http://www.parolski.com/2010/04/27/the-under-appreciated-bourne-shell-operator/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 18:59:20 +0000</pubDate>
		<dc:creator>Anton Parol</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[:]]></category>
		<category><![CDATA[bourne shell]]></category>
		<category><![CDATA[operator]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shell scripts]]></category>

		<guid isPermaLink="false">http://www.parolski.com/?p=329</guid>
		<description><![CDATA[&#8220;:&#8221; is a little known Bourne Shell operator which is actually quite handy. However, like a alot of other short hand operators, its easy to forget, especially when its not used that much. So what can it do? You can replace the true command with it, letting you write something like: while : do some_commands [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;:&#8221; is a little known Bourne Shell operator which is actually quite handy. However, like a alot of other short hand operators, its easy to forget, especially when its not used that much.</p>
<p>So what can it do?</p>
<ul>
<li>You can replace the <em>true</em> command with it, letting you write something like:</li>
</ul>
<p><code> while :<br />
do<br />
some_commands<br />
done<br />
</code></p>
<ul>
<li>Leave the then part of an if statement empty:</li>
</ul>
<p><code>if :<br />
then :<br />
else :<br />
fi</code></p>
<p>I agree, that example is probably useless for now, but amusing none the less.</p>
<p>So there you are! Next time you fancy steering from the norm of using true, you know what to do!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parolski.com/2010/04/27/the-under-appreciated-bourne-shell-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Indexing your man pages</title>
		<link>http://www.parolski.com/2009/09/24/indexing-your-man-pages/</link>
		<comments>http://www.parolski.com/2009/09/24/indexing-your-man-pages/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 17:49:48 +0000</pubDate>
		<dc:creator>Anton Parol</dc:creator>
				<category><![CDATA[solaris]]></category>
		<category><![CDATA[catman]]></category>
		<category><![CDATA[man page]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[windex]]></category>

		<guid isPermaLink="false">http://www.parolski.com/?p=257</guid>
		<description><![CDATA[Its not as boring as you think, but you&#8217;ll HAVE to do it when you don&#8217;t have a windex file and want to search using man -k : anton@opensolaris:/$ man -k grub /usr/share/man/windex: No such file or directory To get round this, we simply go ahead and create the index with catman: anton@opensolaris:/$ pfexec time [...]]]></description>
			<content:encoded><![CDATA[<p>Its not as boring as you think, but you&#8217;ll HAVE to do it when you don&#8217;t have a windex file and want to search using man -k :</p>
<blockquote><p>anton@opensolaris:/$ man -k grub<br />
/usr/share/man/windex: No such file or directory</p></blockquote>
<p>To get round this, we simply go ahead and create the index with <a href="http://docs.sun.com/app/docs/doc/801-6680-1M/6i11qf4sq?a=view&amp;q=catman">catman</a>:</p>
<blockquote><p>anton@opensolaris:/$ pfexec time catman -w</p>
<p>real        2.9<br />
user        1.8<br />
sys         0.1</p></blockquote>
<p>Its pretty quick, and you get left with a little index in /usr/share/man/windex. Its just an ascii version of all the names of your manpages, plus a one line summary of what each one does:</p>
<blockquote><p>1        1 (3openssl)    - OpenSSL configuration functions<br />
1        1 (3openssl)    - OpenSSL configuration functions<br />
1394        ieee1394 (7d)    - Solaris IEEE-1394 Architecture<br />
2        2 (3openssl)    - \&amp; OpenSSL configuration cleanup functions<br />
2        2 (3openssl)    - \&amp; OpenSSL configuration cleanup functions<br />
2        2 (3openssl)    - \&amp; OpenSSL configuration cleanup functions<br />
2.1        EasyTAG (1)    - Tag editor for MP3 and Ogg Vorbis files<br />
2_F32_Sat    mlib_SignalConvertShift_U8_S8_Sat (3mlib)   &#8211; data type convert<br />
with shifting<br />
5.0        MySQL (1)    - MySQL RDBMS version 5.0 for Solaris<br />
6to4        tun (7m)    - tunneling STREAMS module<br />
6to4relay    6to4relay (1m)    - administer configuration for 6to4 relay router<br />
communication<br />
6to4tun     tun (7m)    - tunneling STREAMS module<br />
7-Zip        7-Zip (1)    - A file archiver with highest compression ratio</p></blockquote>
<p>So now when you do your man -k , you&#8217;ll get something useful!:</p>
<blockquote><p>anton@opensolaris:/$ man -k grub<br />
bootadm     bootadm (1m)    - manage bootability of GRUB-enabled operating system<br />
grub        grub (5)    - GRand Unified Bootloader software on Solaris<br />
installgrub    installgrub (1m)    &#8211; install GRUB in a disk partition or a floppy</p></blockquote>
<p>Crucially you only want to do catman -w , otherwise you&#8217;ll be reformatting all your manpages!</p>
<p>From the man page of <a href="http://docs.sun.com/app/docs/doc/801-6680-1M/6i11qf4sq?a=view&amp;q=catman">catman</a>:</p>
<blockquote><p>-w                  Only create the windex database that  is<br />
used  by whatis(1) and the man(1) -f and<br />
-k options.  No manual  reformatting  is<br />
done.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.parolski.com/2009/09/24/indexing-your-man-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>goosh.org</title>
		<link>http://www.parolski.com/2008/06/03/gooshorg/</link>
		<comments>http://www.parolski.com/2008/06/03/gooshorg/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 23:59:50 +0000</pubDate>
		<dc:creator>Anton Parol</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[goosh.org]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.parolski.com/?p=55</guid>
		<description><![CDATA[Go visit goosh.org if you haven&#8217;t already. Maybe useful, maybe not. Its an interesting idea, basically something like a *nix shell but for the web. Interesting that you can even up key and it remembers your last command. Might be interesting if they expand it with some kind of scripting ability. Lets just hope its [...]]]></description>
			<content:encoded><![CDATA[<p>Go visit <a href="www.goosh.org">goosh.org</a> if you haven&#8217;t already. Maybe useful, maybe not. Its an interesting idea, basically something like a *nix shell but for the web. Interesting that you can even up key and it remembers your last command. Might be interesting if they expand it with some kind of scripting ability. Lets just hope its locked down and doesn&#8217;t turn into a real shell&#8230;.or that people don&#8217;t mistake this shell for one they already have open&#8230;.</p>
<blockquote><p><code>rm -rf *</code> &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; &#8220;Hey, wheres the Internet gone?&#8230;&#8230;..uh oh&#8230;&#8230;&#8230;&#8221;</p></blockquote>
<p>Its definitely nice that there are no ads, making it quick to load (despite the fact that the results are heavily abbreviated compared to google.com)</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parolski.com/2008/06/03/gooshorg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

