<?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>The adventures of Foo &#187; Shell</title>
	<atom:link href="http://jensge.org/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://jensge.org</link>
	<description>My aggregated random tech blabber</description>
	<lastBuildDate>Thu, 26 Apr 2012 19:24:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Fake rpm database in ubuntu</title>
		<link>http://jensge.org/2010/01/fake-rpm-database-in-ubuntu/</link>
		<comments>http://jensge.org/2010/01/fake-rpm-database-in-ubuntu/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 11:17:12 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoteToMyself]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=374</guid>
		<description><![CDATA[At work I&#8217;m currently developing software which is supposed to run on openSUSE. I need to query the package database at some point which of course does not exist on my ubuntu machine. Here&#8217;s a quick setup how to create &#8230; <a href="http://jensge.org/2010/01/fake-rpm-database-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At work I&#8217;m currently developing software which is supposed to run on openSUSE. I need to query the package database at some point which of course does not exist on my ubuntu machine. Here&#8217;s a quick setup how to create a fake local RPM database:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;%_dbpath /home/user/rpmdb&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.rpmmacros
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>user<span style="color: #000000; font-weight: bold;">/</span>rpmdb
rpm <span style="color: #660033;">-i</span> <span style="color: #660033;">--nodeps</span> <span style="color: #660033;">--justdb</span> <span style="color: #660033;">--force-debian</span> <span style="color: #000000; font-weight: bold;">*</span>.rpm</pre></div></div>

<p>And that&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2010/01/fake-rpm-database-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making putty look nice on Windows</title>
		<link>http://jensge.org/2009/12/making-putty-look-nice-on-windows/</link>
		<comments>http://jensge.org/2009/12/making-putty-look-nice-on-windows/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 17:24:52 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=348</guid>
		<description><![CDATA[I don&#8217;t like the default look of putty on windows, so I usually do two things: Download the DejaVu fonts Get this PowerShell skript to tangoify the putty palette Note: On Windows 7 you might need to enable yourself to &#8230; <a href="http://jensge.org/2009/12/making-putty-look-nice-on-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t like the default look of <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">putty</a> on windows, so I usually do two things:</p>
<ul>
<li><a href="http://dejavu-fonts.org">Download the DejaVu fonts</a></li>
<li><a href="http://winterdom.com/2009/05/configuring-putty-with-tango">Get this PowerShell skript</a> to tangoify the putty palette<br />
Note: On Windows 7 you might need to enable yourself to be able to execute powershell skripts.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2009/12/making-putty-look-nice-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to examine binary registry dumps in Linux</title>
		<link>http://jensge.org/2009/11/how-to-examine-binary-registry-dumps-in-linux/</link>
		<comments>http://jensge.org/2009/11/how-to-examine-binary-registry-dumps-in-linux/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:36:22 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoteToMyself]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=335</guid>
		<description><![CDATA[Say you have a binary registry export or dump from Windows and need to have a look at its contents. What do you do? The solution I came up with is: WINEPREFIX=/tmp/dump regedit *.reg Which gives you nice plain-text ini-style &#8230; <a href="http://jensge.org/2009/11/how-to-examine-binary-registry-dumps-in-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Say you have a binary registry export or dump from Windows and need to have a look at its contents. What do you do? The solution I came up with is:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">WINEPREFIX</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>dump regedit <span style="color: #000000; font-weight: bold;">*</span>.reg</pre></div></div>

<p>Which gives you nice plain-text ini-style registries to examine in <code>/tmp/dump</code>. That obviously needs <a href="http://winehq.com">Wine</a> installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2009/11/how-to-examine-binary-registry-dumps-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning something new every day&#8230;.</title>
		<link>http://jensge.org/2008/07/learning-something-new-every-day/</link>
		<comments>http://jensge.org/2008/07/learning-something-new-every-day/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 11:30:38 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=86</guid>
		<description><![CDATA[Just in case someone wonders what %~d0 in a .bat or .cmd file means, here&#8217;s the excerpt from help call: [...] In addition, expansion of batch script argument references (%0, %1, etc.) have been changed as follows: %* in a &#8230; <a href="http://jensge.org/2008/07/learning-something-new-every-day/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just in case someone wonders what <code>%~d0</code> in a .bat or .cmd file means, here&#8217;s the excerpt from <code>help call</code>:</p>
<p>[...]</p>
<blockquote><p>In addition, expansion of batch script argument references (%0, %1, etc.) have been changed as follows:</p>
<p>%* in a batch script refers to all the arguments (e.g. %1 %2 %3 %4 %5 &#8230;)</p>
<p>Substitution of batch parameters (%n) has been enhanced.Â  You can<br />
now use the following optional syntax:</p>
<p style="padding-left: 30px;">%~1Â Â Â Â Â Â Â Â  &#8211; expands %1 removing any surrounding quotes (&#8220;)<br />
%~f1Â Â Â Â Â Â Â  &#8211; expands %1 to a fully qualified path name<br />
%~d1Â Â Â Â Â Â Â  &#8211; expands %1 to a drive letter only<br />
%~p1Â Â Â Â Â Â Â  &#8211; expands %1 to a path only<br />
%~n1Â Â Â Â Â Â Â  &#8211; expands %1 to a file name only<br />
%~x1Â Â Â Â Â Â Â  &#8211; expands %1 to a file extension only<br />
%~s1Â Â Â Â Â Â Â  &#8211; expanded path contains short names only<br />
%~a1Â Â Â Â Â Â Â  &#8211; expands %1 to file attributes<br />
%~t1Â Â Â Â Â Â Â  &#8211; expands %1 to date/time of file<br />
%~z1Â Â Â Â Â Â Â  &#8211; expands %1 to size of file<br />
%~$PATH:1Â Â  &#8211; searches the directories listed in the PATH<br />
environment variable and expands %1 to the fully<br />
qualified name of the first one found.Â  If the<br />
environment variable name is not defined or the<br />
file is not found by the search, then this<br />
modifier expands to the empty string</p>
<p>The modifiers can be combined to get compound results:
</p>
<p style="padding-left: 30px;">%~dp1Â Â Â Â Â Â  &#8211; expands %1 to a drive letter and path only<br />
%~nx1Â Â Â Â Â Â  &#8211; expands %1 to a file name and extension only<br />
%~dp$PATH:1 &#8211; searches the directories listed in the PATH<br />
environment variable for %1 and expands to the<br />
qualified name of the first one found.Â  If the<br />
environment variable name is not defined or the<br />
file is not found by the search, then this<br />
modifier expands to the empty string</p>
<p>The modifiers can be combined to get compound results:
</p>
<p style="padding-left: 30px;">%~dp1Â Â Â Â Â Â  &#8211; expands %1 to a drive letter and path only<br />
%~nx1Â Â Â Â Â Â  &#8211; expands %1 to a file name and extension only<br />
%~dp$PATH:1 &#8211; searches the directories listed in the PATH<br />
environment variable for %1 and expands to the<br />
drive letter and path of the first one found.<br />
%~ftza1Â Â Â Â  &#8211; expands %1 to a DIR like output line</p>
<p>In the above examples %1 and PATH can be replaced by other<br />
valid values.Â  The %~ syntax is terminated by a valid argument<br />
number.Â  The %~ modifiers may not be used with %*</p>
</blockquote>
<p>I bet the guy meant %~dp0 in the call to cacls</p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2008/07/learning-something-new-every-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

