<?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>Martin Ström &#187; geek</title>
	<atom:link href="http://my-domain.se/tag/geek/feed/" rel="self" type="application/rss+xml" />
	<link>http://my-domain.se</link>
	<description></description>
	<lastBuildDate>Wed, 11 Jan 2012 11:04:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Terminal.app usage</title>
		<link>http://my-domain.se/terminalapp-usage/</link>
		<comments>http://my-domain.se/terminalapp-usage/#comments</comments>
		<pubDate>Fri, 07 Apr 2006 15:09:11 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/2006/04/07/terminalapp-usage/</guid>
		<description><![CDATA[The other day, Oskar Karlin asked me how and when I use the OS X Terminal app instead of e.g. the Finder. I&#8217;m not by any means a hard core command line guy but ther are often and often situations where the Terminal is faster or/and easier to use for the specific thing. To resize [...]]]></description>
			<content:encoded><![CDATA[<p>The other day, <a href="http://oskarlin.com">Oskar Karlin</a> asked me how and when I use the OS X Terminal app instead of e.g. the Finder. I&#8217;m not by any means a hard core command line guy but ther are often and often situations where the Terminal is faster or/and easier to use for the specific thing.</p>

<ul>
<li><p>To resize all PNG-images in the current folder to 600px width
<code>find . -name "*.png" -type f -exec sips --resampleWidth 600 {} \;</code></p></li>
<li><p>To put in a &#8220;.thumbnail&#8221; in the file name
<code>for file in *.png; do mv $file ${file/.png/.thumbnail.png}; done</code></p></li>
<li><p>When I needed to know how many tracks we (<a href="http://pluxemburg.com">Pluxemburg</a>) sent to <a href="http://www.apple.com/itunes/">ITMS</a>
<code>find Music/iTunes\ Producer/Playlists -name metadata.xml -exec grep "&lt;track&gt;" {} \; | wc -l</code></p></li>
<li><p>Copy a file to our <a href="/">Burnfield</a> server  (instead of launching a FTP-client)
<code>scp myfile burnfield@bidwell.textdrive.com:</code></p></li>
<li><p>Basic, but to view the apache error log
<code>tail /var/log/httpd/error_log</code></p></li>
<li><p>To view the source of this site&#8217;s feed
<code>curl "http://burnfield.com/martin/feed" | head</code></p></li>
<li><p>And how <a href="http://feedburner.com">FeedBurner</a> gets it
<code>curl --user-agent FeedBurner "http://burnfield.com/martin/feed" | head</code></p></li>
</ul>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

