<?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>Linux Swords &#187; cmd-lines</title>
	<atom:link href="http://blog.mjava.ch/category/cmd-lines/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mjava.ch</link>
	<description>kids, baduk und cmd-lines</description>
	<lastBuildDate>Thu, 23 Dec 2010 12:01:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>grep for intersection in files</title>
		<link>http://blog.mjava.ch/2010/06/04/grep-for-intersection-in-files/</link>
		<comments>http://blog.mjava.ch/2010/06/04/grep-for-intersection-in-files/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 21:29:10 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[grep]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/?p=285</guid>
		<description><![CDATA[grep -Fx -f file1 file2
intersection between two files 
]]></description>
			<content:encoded><![CDATA[<p><code>grep -Fx -f file1 file2</code><br />
intersection between two files </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2010/06/04/grep-for-intersection-in-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mash yubnub</title>
		<link>http://blog.mjava.ch/2009/01/31/mash-yubnub/</link>
		<comments>http://blog.mjava.ch/2009/01/31/mash-yubnub/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 14:28:23 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[yubnub]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/?p=226</guid>
		<description><![CDATA[a usefull thing is to mash up yubnub commands:
to launch a search for the term &#8216;einstein&#8217; in wiki, google and google image: &#8216;mash2 einstein -cmd wp g gim&#8216; which creates
a framed page with all three resultpages. The result above is certainly not representative, as it is not very readable, unless you have a huge screen.



A [...]]]></description>
			<content:encoded><![CDATA[<p>a usefull thing is to mash up yubnub commands:</p>
<p>to launch a search for the term &#8216;einstein&#8217; in wiki, google and google image: &#8216;<strong><tt>mash2 einstein -cmd wp g gim</tt></strong>&#8216; which creates<br />
a framed page with all three resultpages. The result above is certainly not representative, as it is not very readable, unless you have a huge screen.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-9854892056689145";
google_ui_features = "rc:";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_alternate_ad_url = "?adsensem-benice=468x60";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>A more useful version would be &#8216;<strong><tt>mash2 torchwood -cmd epguide iso</tt></strong>&#8216;, which displays the result of episodeguides.com and the search result of isotorrents for the tv series named &#8216;Torchwood.</p>
<p>You can use this command also with no searchstring at all. For example, if you are a <a href="http://en.wikipedia.org/wiki/Go_(board_game)">baduk</a> player like me:<br />
&#8216;<strong><tt>mash2 -cmd dgos ogs</tt></strong>&#8216; which displays the games stats on the dragongoserver and online-go.com.</p>
<p>Most of the yubnub commands are also in my <a href="http://wiki.mjava.ch/index.php/Yubnub">wiki</a></p>
<p><i>added later: </i>On a website of one of the commentors (yeah, I actually had one), there is also the option <b>multi</b> instead of <b>mash</b>. Thanks for your article <i>gomelet</i></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2009/01/31/mash-yubnub/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>created new yubnub command: findjar</title>
		<link>http://blog.mjava.ch/2008/12/31/created-new-yubnub-command-findjar/</link>
		<comments>http://blog.mjava.ch/2008/12/31/created-new-yubnub-command-findjar/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 08:15:53 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[cmd-lines]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/2008/12/31/created-new-yubnub-command-findjar/</guid>
		<description><![CDATA[I just recently stumbled accross www.findjar.com, a usefull tool
to find jar-files [who would have guessed..]
And I created a yubnub command for it: findjar
Hope somebody else finds this usefull too  

Blogged with the Flock Browser

Tags: javajar

]]></description>
			<content:encoded><![CDATA[<p>I just recently stumbled accross www.findjar.com, a usefull tool<br />
to find jar-files [who would have guessed..]</p>
<p>And I created a <a href="http://www.yubnub.org">yubnub</a> command for it: <a href="http://yubnub.org/kernel/man?args=findjar">findjar</a></p>
<p>Hope somebody else finds this usefull too <img src='http://blog.mjava.ch/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a class="noborder" href="http://findjar.com/index.jsp"><img src="http://findjar.com/img/logo.png" /></a></p>
<div class="flockcredit" style="text-align: right; color: #CCC; font-size: x-small;">Blogged with the <a href="http://www.flock.com/blogged-with-flock" style="color: #999; font-weight: bold;" target="_new" title="Flock Browser">Flock Browser</a></div>
<p><!-- technorati tags begin -->
<p style="font-size:10px;text-align:right;">Tags: <a href="http://technorati.com/tag/javajar" rel="tag">javajar</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2008/12/31/created-new-yubnub-command-findjar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux screenshot via cmdline</title>
		<link>http://blog.mjava.ch/2008/11/28/linux-screenshot-via-cmdline/</link>
		<comments>http://blog.mjava.ch/2008/11/28/linux-screenshot-via-cmdline/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 11:49:55 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/2008/11/28/linux-screenshot-via-cmdline/</guid>
		<description><![CDATA[The cmdline way for a screenshot:
import myFile.png
Cursor turns into a crosshair cursor -> span an area and the screenshot will be safed as myFile.png
[wiki]
]]></description>
			<content:encoded><![CDATA[<p>The cmdline way for a screenshot:</p>
<p><code>import myFile.png</code></p>
<p>Cursor turns into a crosshair cursor -> span an area and the screenshot will be safed as <em>myFile.png</em></p>
<p>[<a href="http://wiki.mjava.ch/index.php/Screenshot">wiki</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2008/11/28/linux-screenshot-via-cmdline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>more cmdlines [linux-user only]</title>
		<link>http://blog.mjava.ch/2008/10/20/more-cmdlines-linux-user-only/</link>
		<comments>http://blog.mjava.ch/2008/10/20/more-cmdlines-linux-user-only/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 20:19:40 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[bash cmdline]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/2008/10/20/more-cmdlines-linux-user-only/</guid>
		<description><![CDATA[I recently learned and relearned more of common cmdlines and oneliners in bash.
Posting them gives me a place to lookup these until I enter them properly into my wiki.
linux-users follow here
copying/moving files/directories for backup:
mv originalfilename.txt{,.backup}
will result in originalfilename.txt.backup
!! will repeat the last command, usefull for adding sudo in front of it: &#8217;sudo !!&#8217;
As for repeating [...]]]></description>
			<content:encoded><![CDATA[<p>I recently learned and relearned more of common cmdlines and oneliners in <em>bash</em>.<br />
Posting them gives me a place to lookup these until I enter them properly into my wiki.</p>
<p>linux-users follow here<span id="more-219"></span></p>
<p>copying/moving files/directories for backup:<br />
<code>mv originalfilename.txt{,.backup}</code><br />
will result in <em>originalfilename.txt.backup</em></p>
<p><code>!!</code> will repeat the last command, usefull for adding <em>sudo</em> in front of it: <em>&#8217;sudo !!&#8217;</em></p>
<p>As for repeating the last command, you can also use the <em>&#8216;^a^b&#8217;</em> notation. It will repeat the last command and replace the first &#8216;a&#8217; with a &#8216;b&#8217;. Let&#8217;s see an example:</p>
<p>Let&#8217;s say your last command was <em>tar xzvf somefile-version-1.16.9.tar.gz</em> and you realized that<br />
you should have written &#8216;17&#8242; instead of &#8216;16&#8242;. Here&#8217;s the quickfix:<br />
<code>^16^17</code></p>
<p>If you look at the output of the <em>history </em>  command, you&#8217;ll see the command-number in front of the command. You can use <em>&#8216;!&#8217; </em>  with the number:</p>
<p><code>!534</code></p>
<p>will repeat the command with the number 534.</p>
<p>Another usefull shortcut is <em>&lt;Esc&gt; + &#8216;_&#8217;</em>. This will repeat the last parameter of the last command, usefull when creating new directories and then &#8216;cd&#8217; into them.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2008/10/20/more-cmdlines-linux-user-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search my Blog and my Wiki via yubnub</title>
		<link>http://blog.mjava.ch/2008/08/06/search-my-blog-and-my-wiki-via-yubnub/</link>
		<comments>http://blog.mjava.ch/2008/08/06/search-my-blog-and-my-wiki-via-yubnub/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 18:33:36 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[cmd-lines]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/2008/08/06/search-my-blog-and-my-wiki-via-yubnub/</guid>
		<description><![CDATA[I created&#160; 2 yubnub search commands:
&#8216;lsw word&#8216; searches on my wiki for word
&#8216;lsb word&#8217; searches on my blog for word

&#160;
Blogged with the Flock Browser
]]></description>
			<content:encoded><![CDATA[<p>I created&nbsp; 2 yubnub search commands:<br />
&#8216;lsw <span style="font-style: italic;">word</span>&#8216; searches on my wiki for <span style="font-style: italic;">word<br />
&#8216;</span>lsb<span style="font-style: italic;"> word&#8217; </span>searches on my blog for <span style="font-style: italic;">word<br />
</span><br />
&nbsp;<a href="http://yubnub.org"><img alt="Yubnub" src="http://yubnub.org/images/yubnub.png" /></a></p>
<div class="flockcredit" style="text-align: right; color: #CCC; font-size: x-small;">Blogged with the <a href="http://www.flock.com/blogged-with-flock" style="color: #999; font-weight: bold;" target="_new" title="Flock Browser">Flock Browser</a></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2008/08/06/search-my-blog-and-my-wiki-via-yubnub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>groovy script beautified</title>
		<link>http://blog.mjava.ch/2008/03/24/groovy-script-beautified/</link>
		<comments>http://blog.mjava.ch/2008/03/24/groovy-script-beautified/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 16:55:33 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[jar]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/2008/03/24/groovy-script-beautified/</guid>
		<description><![CDATA[I rewrote my groovy-script to have better output:
searchJar.groovy
]]></description>
			<content:encoded><![CDATA[<p>I rewrote my <a href="http://blog.mjava.ch/2008/03/11/groovy-script-lookup-classes-in-jar-files/">groovy-script</a> to have better output:</p>
<p><a href='http://blog.mjava.ch/wp-content/uploads/2008/03/searchjar.groovy' title='searchJar.groovy'>searchJar.groovy</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2008/03/24/groovy-script-beautified/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>groovy-script: lookup classes in jar-files</title>
		<link>http://blog.mjava.ch/2008/03/11/groovy-script-lookup-classes-in-jar-files/</link>
		<comments>http://blog.mjava.ch/2008/03/11/groovy-script-lookup-classes-in-jar-files/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 06:48:40 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[jar]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/2008/03/11/groovy-script-lookup-classes-in-jar-files/</guid>
		<description><![CDATA[Recently I had following problem. I had a bunch of jar-files and I had to find out which jar-file was holding a specific class. 
This is a common task, because your java-code told you that a class XY was not in you classpath, so you would have to search for it, if you don&#8217;t know [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had following problem. I had a bunch of jar-files and I had to find out which jar-file was holding a specific class. </p>
<p>This is a common task, because your java-code told you that a class XY was not in you classpath, so you would have to search for it, if you don&#8217;t know already where to find it.</p>
<p>Since I had to do it already 2 times and as I am learning <a href="http://groovy.codehaus.org/">groovy</a> I decided to write a short groovy-script<br />
(are there long groovy-scripts?) which allows me to do that.</p>
<p>It is pretty straight-forward so here it is: <a href='http://blog.mjava.ch/wp-content/uploads/2008/03/searchjar.groovy' title='searchJar.groovy'>searchJar.groovy</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2008/03/11/groovy-script-lookup-classes-in-jar-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>import gpg-keys from the cmdline</title>
		<link>http://blog.mjava.ch/2008/02/01/import-gpg-keys-from-the-cmdline/</link>
		<comments>http://blog.mjava.ch/2008/02/01/import-gpg-keys-from-the-cmdline/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 13:49:57 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[gpg security key]]></category>

		<guid isPermaLink="false">http://mjava.ch/wordpress/2008/02/01/import-gpg-keys-from-the-cmdline/</guid>
		<description><![CDATA[like linux cmdline:
if you are looking for my name for example, enter the following:
gpg --search-keys knoller
This will look for my key, offer you a choice of all &#8216;knoller&#8217;-keys and
will import them automatically to your keychain.
Usefull in conjuction with mail-security,
which btw, apple has no support. shame on apple.
]]></description>
			<content:encoded><![CDATA[<p>like linux cmdline:<br />
if you are looking for my name for example, enter the following:<br />
<code>gpg --search-keys <em>knoller</em></code><br />
This will look for my key, offer you a choice of all &#8216;knoller&#8217;-keys and<br />
will import them automatically to your keychain.</p>
<p>Usefull in conjuction with <a href="http://avetter.ch/wordpress/?p=21">mail-security</a>,<br />
which btw, apple has no support. shame on apple.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2008/02/01/import-gpg-keys-from-the-cmdline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leopard, force backup for time machine</title>
		<link>http://blog.mjava.ch/2008/01/29/leopard-force-backup-for-time-machine/</link>
		<comments>http://blog.mjava.ch/2008/01/29/leopard-force-backup-for-time-machine/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 10:56:28 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[leopard]]></category>

		<guid isPermaLink="false">http://mjava.ch/wordpress/2008/01/29/leopard-force-backup-for-time-machine/</guid>
		<description><![CDATA[Time Machine is a good concept for backups, but when I connect my external harddrive I usually have to wait for 10-45minutes before the backup starts. There are 2 ways to force a backup instantly

If you still have your time machine icon in the doc, you can ctrl-click it and select &#8216;backup now&#8217;
If you don&#8217;t, [...]]]></description>
			<content:encoded><![CDATA[<p>Time Machine is a good concept for backups, but when I connect my external harddrive I usually have to wait for 10-45minutes before the backup starts. There are 2 ways to force a backup instantly</p>
<ol>
<li>If you still have your time machine icon in the doc, you can ctrl-click it and select &#8216;backup now&#8217;</li>
<li>If you don&#8217;t, as I have because I like to have my dock as simple as possible, you can do it on the cmd-line. Yes cmd-line, hurray, linux forever, ahemm&#8230; sorry, short outburst&#8230;<br />
here is the command:<code><br />
/System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd-helper</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2008/01/29/leopard-force-backup-for-time-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

