<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Doug's Oracle Blog (Entries tagged as Unix/Shell)</title>
    <link>http://oracledoug.com/serendipity/</link>
    <description></description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:doug@oracledoug.com" />
    <generator>Serendipity 1.5.2 - http://www.s9y.org/</generator>
    <managingEditor>Doug Burns</managingEditor>
<webMaster>Doug Burns</webMaster>
<pubDate>Thu, 11 Jun 2009 02:50:05 GMT</pubDate>

    <image>
        <url>http://oracledoug.com/serendipity/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Doug's Oracle Blog - </title>
        <link>http://oracledoug.com/serendipity/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Paste</title>
    <link>http://oracledoug.com/serendipity/index.php?/archives/1392-Paste.html</link>
    
    <comments>http://oracledoug.com/serendipity/index.php?/archives/1392-Paste.html#comments</comments>
    <wfw:comment>http://oracledoug.com/serendipity/wfwcomment.php?cid=1392</wfw:comment>

    <slash:comments>8</slash:comments>
    <wfw:commentRss>http://oracledoug.com/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=1392</wfw:commentRss>
    

    <author>dougburns@yahoo.com (Doug Burns)</author>
    <content:encoded>
    [As part of the occasional series on small but useful Unix commands ...]&lt;br /&gt;&lt;br /&gt;I&#039;ve always loved Unix and vi and despair at those who prefer to faff around on Windows trying to edit files with an operating system and editors that, yes, are much more friendly but are hopelessly limited. The advent of Google (and yes, I&#039;m more than aware of previous search engines) has added to the Unix/vi combination when I desperately need to solve a text processing problem in a hurry. I&#039;m no awk expert!&lt;br /&gt;&lt;br /&gt;Last Friday was one of those desperate moments. I was in the midst of an environment refresh and was rolling the test database forward using the Production control file. Each time I got a new copy of the control file to roll forward a bit more (because we use the control file as the RMAN repository), I wanted to rename the 170+ datafiles that make up the database. I had an ordered list of test and production files and their respective paths, but in two seperate files. All I wanted was to mingle the lines from each file into one file, with the two filenames on a single line.&lt;br /&gt;&lt;br /&gt;I won&#039;t go into the details and I definitely won&#039;t get into extended dialogues about alternative solutions and why they didn&#039;t apply here*. This is a simple blog about &lt;a href=&quot;http://www.softpanorama.org/Tools/paste.shtml&quot;&gt;the Unix paste command&lt;/a&gt;, which came to my rescue. (That link is to the very first Google result - no research or careful review.)&lt;br /&gt;&lt;br /&gt;* No doubt those conversations will crop up, but I&#039;m in course slide hell at the moment so don&#039;t expect much response from me. 
    </content:encoded>

    <pubDate>Tue, 18 Mar 2008 19:03:08 +0000</pubDate>
    <guid isPermaLink="false">http://oracledoug.com/serendipity/index.php?/archives/1392-guid.html</guid>
    <category>Unix/Shell</category>

</item>
<item>
    <title>Script</title>
    <link>http://oracledoug.com/serendipity/index.php?/archives/1332-Script.html</link>
    
    <comments>http://oracledoug.com/serendipity/index.php?/archives/1332-Script.html#comments</comments>
    <wfw:comment>http://oracledoug.com/serendipity/wfwcomment.php?cid=1332</wfw:comment>

    <slash:comments>5</slash:comments>
    <wfw:commentRss>http://oracledoug.com/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=1332</wfw:commentRss>
    

    <author>dougburns@yahoo.com (Doug Burns)</author>
    <content:encoded>
    Well, as the which blog was deemed useful (although most commentors did already know about it), how about the &lt;a href=&quot;http://unixhelp.ed.ac.uk/CGI/man-cgi?script&quot;&gt;script&lt;/a&gt; Unix command?&lt;br /&gt;&lt;br /&gt;It&#039;s very useful for keeping a record of an extended series of actions, like those a DBA will often encounter when implementing a complex change. It&#039;s also useful for attaching a complex working example to a Service Request to illustrate a problem. (That was the example that cropped up the other day that prompted this blog.) 
    </content:encoded>

    <pubDate>Sun, 28 Oct 2007 22:51:55 +0000</pubDate>
    <guid isPermaLink="false">http://oracledoug.com/serendipity/index.php?/archives/1332-guid.html</guid>
    <category>Unix/Shell</category>

</item>
<item>
    <title>Which?</title>
    <link>http://oracledoug.com/serendipity/index.php?/archives/1328-Which.html</link>
    
    <comments>http://oracledoug.com/serendipity/index.php?/archives/1328-Which.html#comments</comments>
    <wfw:comment>http://oracledoug.com/serendipity/wfwcomment.php?cid=1328</wfw:comment>

    <slash:comments>19</slash:comments>
    <wfw:commentRss>http://oracledoug.com/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=1328</wfw:commentRss>
    

    <author>dougburns@yahoo.com (Doug Burns)</author>
    <content:encoded>
    No, I don&#039;t mean the UK consumer organisation, but a simple *nix command. It&#039;s so simple that I&#039;ve hesitated about blogging about it, but when I keep sharing a small snippet of information and people don&#039;t know it and find it useful, it&#039;s probably worth mentioning here.&lt;br /&gt;&lt;br /&gt;If you work on Unix servers, you&#039;ll be familiar with long $PATH settings. Sometimes it&#039;s difficult to tell which particular version of a command you&#039;re using when there are versions scattered around in various locations, some in the PATH and some not. If you want to check which copy of a command you&#039;re running, just use the &lt;a href=&quot;http://en.wikipedia.org/wiki/Which_%28Unix%29&quot;&gt;which&lt;/a&gt; command. For example, in this PATH (which is pretty short compared to the PATHs on the servers at work)&lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;[oracle@ISP4400 ~]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:
/u01/app/oracle/product/11.1.0/db_1/bin&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;if I type in&lt;/p&gt;
&lt;pre&gt;[oracle@ISP4400 ~]$ java&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;where is the executable running from? Well, I can check with the which command&lt;/p&gt;
&lt;pre&gt;[oracle@ISP4400 ~]$ which java
/usr/bin/java&lt;/pre&gt;&lt;br /&gt;I apologise to those for whom this is completely obvious, but there are clearly people out there who don&#039;t know this command and I find it useful regularly. 
    </content:encoded>

    <pubDate>Thu, 25 Oct 2007 19:26:47 +0100</pubDate>
    <guid isPermaLink="false">http://oracledoug.com/serendipity/index.php?/archives/1328-guid.html</guid>
    <category>Unix/Shell</category>

</item>

</channel>
</rss>