<?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>MemoSoup &#187; PATH</title>
	<atom:link href="http://www.memosoup.com/tag/path/feed" rel="self" type="application/rss+xml" />
	<link>http://www.memosoup.com</link>
	<description>Mix of the things I always forget</description>
	<lastBuildDate>Fri, 30 Jul 2010 15:59:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Print the PATH directories in the readable format</title>
		<link>http://www.memosoup.com/20090912/print-the-path-directories-in-the-readable-format.html</link>
		<comments>http://www.memosoup.com/20090912/print-the-path-directories-in-the-readable-format.html#comments</comments>
		<pubDate>Sat, 12 Sep 2009 18:55:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[output]]></category>
		<category><![CDATA[PATH]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=69</guid>
		<description><![CDATA[echo $PATH&#124; awk -v RS=&#34;:&#34; '{ print $0 }'

echo $LD_LIBRARY_PATH &#124;awk -v RS=&#34;:&#34; '{ system ( &#34;ls -rltd &#34; $0 ) }'
<p>Warning!
As far as the option &#8216;-v&#8217; is used, the new awk(nawk in some systems) should be used.</p>
<p>To check if the new version of awk is installed:</p>
awk 1 /dev/null
<p>The output will be empty for new awk.
You [...]]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$PATH</span><span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #660033;">-v</span> <span style="color: #007800;">RS</span>=<span style="color: #ff0000;">&quot;:&quot;</span> <span style="color: #ff0000;">'{ print $0 }'</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$LD_LIBRARY_PATH</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #660033;">-v</span> <span style="color: #007800;">RS</span>=<span style="color: #ff0000;">&quot;:&quot;</span> <span style="color: #ff0000;">'{ system ( &quot;ls -rltd &quot; $0 ) }'</span></div></div>
<p><em>Warning!</em><br />
As far as the option &#8216;-v&#8217; is used, the new awk(<strong>nawk</strong> in some systems) should be used.</p>
<p>To check if the new version of awk is installed:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</div></div>
<p>The output will be empty for new awk.<br />
You have the old awk, if the output is something like</p>
<blockquote><p>
awk: syntax error near line 1
</p></blockquote>
<p>In this case <strong>nawk</strong> should be used instead <strong>awk</strong></p>
<p><strong>MS-DOS</strong> modification: echo %PATH% | awk -v RS=&#8221;;&#8221; &#8220;{ print $0 }&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20090912/print-the-path-directories-in-the-readable-format.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
