<?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>intuitive engineering &#187; shell</title>
	<atom:link href="http://dougmunsinger.com/category/shell/feed" rel="self" type="application/rss+xml" />
	<link>http://dougmunsinger.com</link>
	<description>doug munsinger</description>
	<lastBuildDate>Fri, 13 Jan 2012 17:08:59 +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>Fall through code to a success&#8230;</title>
		<link>http://dougmunsinger.com/2009/12/fall-through-code-to-a-success.html</link>
		<comments>http://dougmunsinger.com/2009/12/fall-through-code-to-a-success.html#comments</comments>
		<pubDate>Thu, 10 Dec 2009 15:58:10 +0000</pubDate>
		<dc:creator>doug</dc:creator>
				<category><![CDATA[move3]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[bash shell]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://dougmunsinger.com/2009/12/fall-through-code-to-a-success.html</guid>
		<description><![CDATA[I found a piece of code in a nagios alerting script that returns &#8220;success&#8221; matter what is happening with the jboss application it is checking. This script had been perpetuated as a service alerting script for years in the environs I work in, edited and passed on as working. It reads: if [failure code here]; [...]]]></description>
			<content:encoded><![CDATA[<p>I found a piece of code in a nagios alerting script that returns &#8220;success&#8221; matter what is happening with the jboss application it is checking.  </p>
<p>This script had been perpetuated as a service alerting script for years in the environs I work in, edited and passed on as working.  It reads:</p>
<p>if [failure code here]; then<br />
    # return failure to nagios nrpe daemon<br />
else<br />
   # return success to nrpe<br />
fi</p>
<p>The test for a failure failed to match, even when the test was looking for a jboss instance not present on the server.  Because the code falls through to success, everything looks just fine, all of the time.  </p>
<p>The test for failure being incorrect struck me first when I looked through the script.  The more basic flaw in logic hit me after.  I think it would be true in an alerting script you would NEVER drop through a loop to a final success.   The test would be for success, the fall-through to failure.  This would have prevented a false sense of security, and the failure to detect success would have been dealt with immediately.</p>
<p>Something like: </p>
<p>if [success code here]; then<br />
    # return success to nagios nrpe daemon<br />
else<br />
   # return failure nrpe<br />
fi</p>
<p>Obvious.  But an epiphany anyway.</p>
<p>&#8211;doug</p>
<div class="addtothis"><p>
				<table cellspacing="0" cellpadding="0" border="0" style="width: 180px; height: 30px; text-align: left; margin-left: 0px; ">
				<tbody>
				<tr>
				<td style="text-align: center;">
				<a href="http://www.stumbleupon.com/submit?url=http://dougmunsinger.com/2009/12/fall-through-code-to-a-success.html&title=Fall through code to a success&#8230;" rel="nofollow">
                                <img src="http://dougmunsinger.com/wp-content/plugins/addtothis/stumble.png" title="Add to Stumble Upon" alt="Stumble It!" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://del.icio.us/post?url=http://dougmunsinger.com/2009/12/fall-through-code-to-a-success.html&title=Fall through code to a success&#8230;" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/delicious.png" title="Add to Del.icio.us" alt="Add to Del.cio.us" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://technorati.com/faves?add=http://dougmunsinger.com/2009/12/fall-through-code-to-a-success.html" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/technorati.png" title="Add to Technorati" alt="Add to Technorati Favorites" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://digg.com/submit?phase=2&url=http://dougmunsinger.com/2009/12/fall-through-code-to-a-success.html" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/digg.png" title="Add to Digg" alt="Digg It!" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://dougmunsinger.com/feed/rss" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/feeds.png" title="Add Feed to Bookmarks" alt="RSS Feed" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				</tr>
				</tbody>
				</table>

                
		
				</p></div>]]></content:encoded>
			<wfw:commentRss>http://dougmunsinger.com/2009/12/fall-through-code-to-a-success.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eclipsed</title>
		<link>http://dougmunsinger.com/2009/03/eclipsed.html</link>
		<comments>http://dougmunsinger.com/2009/03/eclipsed.html#comments</comments>
		<pubDate>Sun, 29 Mar 2009 15:37:31 +0000</pubDate>
		<dc:creator>doug</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[move2]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX & Windows]]></category>
		<category><![CDATA[RSE]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://dougmunsinger.com/?p=634</guid>
		<description><![CDATA[&#160; &#160; &#160; I&#8217;ve been working with Remote System Explorer (RSE), a terminal and ssh session manager that runs in the Eclipse SDK. This is very cool &#8211; the thing is, eclipse runs on Solaris, Linux, Windows, MAC OSX, IBM AIX (of course &#8211; IBM created the eclipse framework). It as close to an OS-agnostic [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img src="../../../images/posts/2009/eclipse.png" title="eclipse splash" alt="eclipse splash"/></p>
<p>&nbsp;</p>
<p>I&#8217;ve been working with <a href="http://www.eclipse.org/dsdp/tm" title="RSE">Remote System Explorer (RSE)</a>, a terminal and ssh session manager that runs in the <a href="http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php" title="Eclipse SDK">Eclipse SDK</a>.  This is very cool &#8211; the thing is, eclipse runs on Solaris, Linux, Windows, MAC OSX, IBM AIX (of course &#8211; IBM created the eclipse framework).   It as close to an OS-agnostic framework as anything I&#8217;ve ever experienced. </p>
<p>I had primarily intended to use it on windows to add ssh terminal capacity &#8211; replacing console2 and cygwin &#8211; to connect to UNIX servers.  But the interface is so good, I find I&#8217;m using it on both UNIX and windows &#8211; the konsole terminal is better in some ways at history and at cut-and-paste using mouse buttons directly.  So far the context menu from a right-click is the only cut-and-paste that functions within the terminal windows themselves. </p>
<p>On the other hand &#8211; in konsole each separate terminal window is a separate authentication &#8211; password-response &#8211; whereas in eclipse RSE, one authentication can be kept and spawn as many terminal sessions as needed.  The organization is better.  You can close the terminal sessions down, and leave a connection still intact.  Then bring back terminal sessions as needed.  That ability alone makes it worth losing the double-click select and middle-button paste from konsole sessions.  I&#8217;m not yet convinced I can&#8217;t find a way to get that working either, that and an unlimited history or at least 10000 lines&#8230;</p>
<p>&nbsp;</p>
<p><a href="../../../images/posts/2009/eclipse_4.png" title=eclipse window" rel="lightbox"><img src="../../../images/posts/2009/eclipse_4_300.png" title=eclipse window" alt="eclipse window"/></a></p>
<p>&nbsp;</p>
<p>If I can get that back somehow in the terminal sessions it will be not just slightly better, but a huge amount better than any other session management I&#8217;ve used. </p>
<h2>Install</h2>
<p>You need <a href="http://java.sun.com/javaee/downloads/index.jsp" title="java">java</a>.  On windows that can be an issue.  On UNIX, not so much, pretty much there by default.</p>
<p>Download <a href="http://www.eclipse.org/downloads/download.php?file=/dsdp/tm/downloads/drops/R-3.0.3-200902181300/RSE-SDK-3.0.3.zip" title="RSE">RSE</a> and <a href="http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php" title="eclipse SDK 3.4.2">eclipse SDK</a>.  </p>
<p>Untar or unzip the eclipse package. In windows I unzip to c:\eclipse_3.4.2.  In UNIX /usr/local/eclipse.   </p>
<p>Unzip the RSE package layered over the eclipse install. </p>
<p>In windows I point a shortcut to c:\eclipse_3.4.2.  In UNIX I move /usr/local/eclipse to /usr/local/eclipse_3.4.2, and create a symbolic link /usr/local/eclipse -> /usr/local/eclipse_3.4.2.  </p>
<p>Open eclipse.  Go to window -> open perspective -> other and open Remote System Explorer. </p>
<p>&nbsp;</p>
<p><a href="../../../images/posts/2009/eclipse_1.png" title=eclipse window" rel="lightbox"><img src="../../../images/posts/2009/eclipse_1_300.png" title=eclipse window" alt="eclipse window"/></a></p>
<p>&nbsp;</p>
<p>Configurations are stored in the workspace folder.  Right-click in the left-hand pane and select &#8220;New Connection to create connections.  Within eclipse you can add software respositories and update and add software from Help -> Software Updates. </p>
<p>&nbsp;</p>
<p><a href="../../../images/posts/2009/eclipse_2.png" title=eclipse window" rel="lightbox"><img src="../../../images/posts/2009/eclipse_2_300.png" title=eclipse window" alt="eclipse window"/></a></p>
<p><a href="../../../images/posts/2009/eclipse_3.png" title=eclipse window" rel="lightbox"><img src="../../../images/posts/2009/eclipse_3_300.png" title=eclipse window" alt="eclipse window"/></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&mdash; doug</p>
<p>&nbsp;</p>
<div class="addtothis"><p>
				<table cellspacing="0" cellpadding="0" border="0" style="width: 180px; height: 30px; text-align: left; margin-left: 0px; ">
				<tbody>
				<tr>
				<td style="text-align: center;">
				<a href="http://www.stumbleupon.com/submit?url=http://dougmunsinger.com/2009/03/eclipsed.html&title=eclipsed" rel="nofollow">
                                <img src="http://dougmunsinger.com/wp-content/plugins/addtothis/stumble.png" title="Add to Stumble Upon" alt="Stumble It!" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://del.icio.us/post?url=http://dougmunsinger.com/2009/03/eclipsed.html&title=eclipsed" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/delicious.png" title="Add to Del.icio.us" alt="Add to Del.cio.us" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://technorati.com/faves?add=http://dougmunsinger.com/2009/03/eclipsed.html" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/technorati.png" title="Add to Technorati" alt="Add to Technorati Favorites" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://digg.com/submit?phase=2&url=http://dougmunsinger.com/2009/03/eclipsed.html" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/digg.png" title="Add to Digg" alt="Digg It!" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://dougmunsinger.com/feed/rss" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/feeds.png" title="Add Feed to Bookmarks" alt="RSS Feed" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				</tr>
				</tbody>
				</table>

                
		
				</p></div>]]></content:encoded>
			<wfw:commentRss>http://dougmunsinger.com/2009/03/eclipsed.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TERM=vt220</title>
		<link>http://dougmunsinger.com/2008/08/termvt220.html</link>
		<comments>http://dougmunsinger.com/2008/08/termvt220.html#comments</comments>
		<pubDate>Sat, 30 Aug 2008 01:41:56 +0000</pubDate>
		<dc:creator>doug</dc:creator>
				<category><![CDATA[move5]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[UNIX & Windows]]></category>

		<guid isPermaLink="false">http://dougmunsinger.com/?p=254</guid>
		<description><![CDATA[&#160; console2 with cygwin bash shell and ssh behind it (and a lot of other UNIX commands too, like ls, and find and grep and awk and gpg&#8230;) has turned out to be a good solution. I discovered that cygwin sets the terminal as TERM=cygwin. That plays hell with vi on SUN servers. I found [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><a href="http://sourceforge.net/projects/console/" title="console2">console2</a> with <a href="http://www.cygwin.com/" title="cygwin">cygwin</a> bash shell and ssh behind it (and a lot of other UNIX commands too, like ls, and find and grep and awk and gpg&#8230;) has turned out to be a good solution.</p>
<p>I discovered that cygwin sets the terminal as TERM=cygwin.  That plays hell with vi on SUN servers.  I found that setting &#8220;export TERM=vt220&#8243;  in .profile (this is SUN Solaris 10) resolved vi, getting the console2 window to show the display correctly, and letting the arrow keys work again.</p>
<p>A second gotcha &#8211; DON&#8217;T set ctrl-c as copy in the hot-keys.  That ctrl-c you use to break out of errant commands or scripts stops working at all, very disconcerting.  Instead map  shift-ctrl-c.  There&#8217;s an alpha feature enabling tranparency &#8211; looks cool, but isn&#8217;t stable.  Ctrl-r (history searching in bash) is mapped to renaming the tabs for console windows &#8211; you&#8217;ll set that to ctrl-alt-n as below and resolve that. </p>
<p>Here are the settings in console2 I&#8217;ve found to come very close to what I use in Konsole in KDE:</p>
<ul>
<li>base underneath is cygwin &#8211; therefore need &#8220;export TERM=vt220&#8243; in .profile to have vi behave on SUN &#8211; run on command line initially to test and to edit .profile&#8230;</li>
<li>add &#8220;c:\cygwin\bin to path in control panel -> system -> advanced -> environmental variables</li>
<li>console:</li>
<ul>
<li>shell is c:\cygwin\bin\bash.exe</li>
<li>working directory is c:\</li>
<li>buffer size Rows is 5000, columns is 0 </li>
</ul>
<li>appearance:</li>
<ul>
<li>more &#8211; set tabs to always be present (uncheck &#8220;hide single tab&#8221;)</li>
</ul>
<li>behavior:</li>
<ul>
<li>check copy on select</li>
<li>check clear selection on copy</li>
<li>select UNIX LF</li>
</ul>
<li>map hotkeys to emulate konsole</li>
<ul>
<li>shift-left for previous window</li>
<li>shift-right for next</li>
<li>ctrl-alt-n for new windows</li>
<li>ctrl-alt-s for rename</li>
<li>shift-up arrow for line up</li>
<li>shift-arrow down for line down</li>
<li>shift-page-up for page up</li>
<li>shift-page-down for page down </li>
<li>shift-ctrl-c for copy</li>
<li>ctrl-v for paste</li>
</ul>
<li>mouse:</li>
<ul>
<li>right button to paste</li>
<li>set copy on select</li>
<li>left button to select</li>
<li>copy/clear selection is &#8220;none&#8221; </li>
</ul>
<li>tabs:</li>
<ul>
<li>set shell as C:\cygwin\bin\bash.exe</li>
<li>working directory is C:\ </li>
</ul>
</ul>
<p>&nbsp;</p>
<p>&mdash; dsm </p>
<p>&nbsp;</p>
<hr/>
<p>&nbsp;</p>
<p><b>UPDATE 20080904:</b> I installed console2 on all of my windows machines (dual boot, except for work).  It worked perfectly &#8211; then a co-worker tried it out and had issues.  He searched and found that  in some instances cygwin&#8217;s bash shell refused to complete loading and never returns a command prompt.  The solution looks to be a reinstall or upgrade of cygwin, or possibly some difference in the way cygwin was installed.  </p>
<p>I laughed and said, &#8220;It works for me.&#8221;</p>
<p>He said, &#8220;You can tell when you work in an IT shop &#8211; when something fails for someone,  you always get that response &#8211; &#8220;It works for me.&#8221;"  </p>
<p>&nbsp;</p>
<h2>Update 20090329 Sunday</h2>
<p>export TERM=ansi</p>
<p>I installed eclipse with Remote System Explorer.  vt220 caused VI to fail to refresh (at least SUN&#8217;s crippled vi version).  ansi worked much better within RSE.</p>
<p>&mdash; doug</p>
<p>&nbsp;</p>
<div class="addtothis"><p>
				<table cellspacing="0" cellpadding="0" border="0" style="width: 180px; height: 30px; text-align: left; margin-left: 0px; ">
				<tbody>
				<tr>
				<td style="text-align: center;">
				<a href="http://www.stumbleupon.com/submit?url=http://dougmunsinger.com/2008/08/termvt220.html&title=TERM=vt220" rel="nofollow">
                                <img src="http://dougmunsinger.com/wp-content/plugins/addtothis/stumble.png" title="Add to Stumble Upon" alt="Stumble It!" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://del.icio.us/post?url=http://dougmunsinger.com/2008/08/termvt220.html&title=TERM=vt220" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/delicious.png" title="Add to Del.icio.us" alt="Add to Del.cio.us" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://technorati.com/faves?add=http://dougmunsinger.com/2008/08/termvt220.html" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/technorati.png" title="Add to Technorati" alt="Add to Technorati Favorites" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://digg.com/submit?phase=2&url=http://dougmunsinger.com/2008/08/termvt220.html" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/digg.png" title="Add to Digg" alt="Digg It!" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://dougmunsinger.com/feed/rss" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/feeds.png" title="Add Feed to Bookmarks" alt="RSS Feed" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				</tr>
				</tbody>
				</table>

                
		
				</p></div>]]></content:encoded>
			<wfw:commentRss>http://dougmunsinger.com/2008/08/termvt220.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>stupid shell (and UNIX) tricks</title>
		<link>http://dougmunsinger.com/2008/07/stupid-shell-and-unix-tricks.html</link>
		<comments>http://dougmunsinger.com/2008/07/stupid-shell-and-unix-tricks.html#comments</comments>
		<pubDate>Tue, 29 Jul 2008 23:52:49 +0000</pubDate>
		<dc:creator>doug</dc:creator>
				<category><![CDATA[move6]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[bash shell]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">https://dougmunsinger.com/?p=97</guid>
		<description><![CDATA[I love using abobe photoshop C2&#8242;s automation &#8211; especially when resizing a series of images for the web. I would love to run linux entirely &#8211; but linux keeps falling short in graphics programs (yes, I use gimp &#8211; sorry, but Photoshop is better) and printer drivers &#8211; linux still can&#8217;t run my Canon Pixma [...]]]></description>
			<content:encoded><![CDATA[<p>I love using abobe photoshop C2&#8242;s automation &#8211; especially when resizing a series of images for the web.  I would love to run linux entirely &#8211; but linux keeps falling short in graphics programs (yes, I use gimp &#8211; sorry, but Photoshop is better) and printer drivers &#8211; linux still can&#8217;t run my Canon Pixma pro 9000 color printer.  That and every corporation I do work for has some required program or access method that seems to insist on only running on windows. </p>
<p> That said, while all operating systems suck to some degree, Windows consistently manages to suck more than most.  Cygwin supplements Windows pathetic command line with a bash shell and a lot of UNIX functionality.  </p>
<p>When you run adobe batch scripting to resize a series of jpg&#8217;s and then save them in a different directory as gif files, it insists on writing &#8220;copy&#8221; in the file name.  photograph1.jpg becomes &#8220;photograph1 copy.gif&#8221;.  To remove the &#8221; copy&#8221; string, run:</p>
<p><code>$ for i in *<br />
> do<br />
> mv "$i" "${i/\ copy.gif}".gif<br />
> done </code></p>
<p>sed and awk</p>
<p>One of the instructors I had in UNIX system administration courses was&#8230; How to put this&#8230; One brick short of a wall.  He was supposed to include sed and awk UNIX commands i the course, and he glossed over them as &#8220;something you would never use, trust me&#8221;.  A couple of years later, when I needed and had to learn the commands, I thoroughly realized he was very wrong. </p>
<p>I had to rename a series of website pages in a site redesign &#8211; including altering the names inside the pages themselves.  Here&#8217;s how I did it.</p>
<p> Here&#8217;s the command that changed one set of links from the old page to the new:</p>
<p><code><br />
for i in ` grep photographs_5.html * | awk -F : '{ print $1 }'`<br />
do<br />
echo $i<br />
sed  's/photographs_5.html/photographs_001.html/g' &lt; $i &gt; $i.1<br />
mv ${i}.1 ${i}<br />
done<br />
</code></p>
<p>This loops through and finds any files with the string &#8220;photographs_5.html&#8221; <br/><br />
echos out each file, changes (using the sed command, standard UNIX tool&#8230;) from photographs_5.html to photographs_001.html, creating a new file named [file].1,<br/><br />
then replacing the original file by moving (mv) the [file].1 file over on top of the [file].</p>
<p>I love UNIX.  Both of these were done on Windows using the bash shell in <a href="http://www.cygwin.com/" title="cygwin">cygwin</a>.  This supplies basic UNIX functionality to Windows, including the bash shell, sed and awk, ssh and rsync (by selecting the package), wget and gpg (extra package selection), and many other functions.  The setup program downloads a list, within which you can select additional packages, download and install.</p>
<p>Cygwin at least makes Windows somewhat command line friendly.</p>
<p>&mdash;dsm</p>
<div class="addtothis"><p>
				<table cellspacing="0" cellpadding="0" border="0" style="width: 180px; height: 30px; text-align: left; margin-left: 0px; ">
				<tbody>
				<tr>
				<td style="text-align: center;">
				<a href="http://www.stumbleupon.com/submit?url=http://dougmunsinger.com/2008/07/stupid-shell-and-unix-tricks.html&title=stupid shell (and UNIX) tricks" rel="nofollow">
                                <img src="http://dougmunsinger.com/wp-content/plugins/addtothis/stumble.png" title="Add to Stumble Upon" alt="Stumble It!" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://del.icio.us/post?url=http://dougmunsinger.com/2008/07/stupid-shell-and-unix-tricks.html&title=stupid shell (and UNIX) tricks" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/delicious.png" title="Add to Del.icio.us" alt="Add to Del.cio.us" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://technorati.com/faves?add=http://dougmunsinger.com/2008/07/stupid-shell-and-unix-tricks.html" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/technorati.png" title="Add to Technorati" alt="Add to Technorati Favorites" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://digg.com/submit?phase=2&url=http://dougmunsinger.com/2008/07/stupid-shell-and-unix-tricks.html" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/digg.png" title="Add to Digg" alt="Digg It!" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				<td style="text-align: center;">
				<a href="http://dougmunsinger.com/feed/rss" rel="nofollow">
				<img src="http://dougmunsinger.com/wp-content/plugins/addtothis/feeds.png" title="Add Feed to Bookmarks" alt="RSS Feed" style="border: 0px solid ; width: 28px; height: 28px;"/>
				</a>
				</td>
				</tr>
				</tbody>
				</table>

                
		
				</p></div>]]></content:encoded>
			<wfw:commentRss>http://dougmunsinger.com/2008/07/stupid-shell-and-unix-tricks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

