<?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 für alle &#187; filesize</title>
	<atom:link href="http://www.simplylinux.ch/tag/filesize/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simplylinux.ch</link>
	<description>Jeder kann Linux beherrschen lernen...</description>
	<lastBuildDate>Thu, 08 Jul 2010 08:37:35 +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>Speicherbedarf ermitteln</title>
		<link>http://www.simplylinux.ch/speicherbedarf-ermitteln</link>
		<comments>http://www.simplylinux.ch/speicherbedarf-ermitteln#comments</comments>
		<pubDate>Mon, 23 Feb 2009 10:30:04 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[disk usage]]></category>
		<category><![CDATA[filesize]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=52</guid>
		<description><![CDATA[Ich wollte heute mal wissen, wie gross den meine Musiksammlung ist &#8211; getrennt nach Dateitypen, da ich vor einiger Zeit angefangen habe alles auf .flac umzustellen. Speicherplatz ist ja kein grosses Problem. Eine 1 TB Platte bekommt man ja für ca. CHF 100.00 (oder ein bisschen mehr, weiss nicht wie die Preise jetzt sind) und [...]]]></description>
			<content:encoded><![CDATA[<p>Ich wollte heute mal wissen, wie gross den meine Musiksammlung ist &#8211; getrennt nach Dateitypen, da  ich vor einiger Zeit angefangen habe alles auf .flac umzustellen. Speicherplatz ist ja kein grosses Problem. Eine 1 TB Platte bekommt man ja für ca. CHF 100.00 (oder ein bisschen mehr, weiss nicht wie die Preise jetzt sind) und darauf passen ca. 2300 CDs die in Flac aufgenommen wurden mit maximaler Kompression. Als gibts keinen wirklichen Grund nicht-verlustfrei die Musik zu speichern, auch wenn die Dateien gegenüber .mp3/.ogg 4-5x grösser sind.<br />
<span id="more-52"></span><br />
Den Speicherbedarf kann man also mit einem Einzeiler ausfindig machen:</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">find</span> <span class="sy0">/</span>home<span class="sy0">/</span>hyper<span class="sy0">/</span>Music <span class="re5">-type</span> f <span class="re5">-name</span> <span class="st0">&quot;*.flac&quot;</span> <span class="re5">-ls</span> <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st_h">'{ sum += $7 } END { print &quot;total size: &quot; sum}'</span></pre></div></div>
<p>Einfach den Pfad setzen (hier /home/hyper/Music), dann noch den Dateityp bestimmen (*.flac) und schon kriegt man das Resultat in Bytes zurück.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/speicherbedarf-ermitteln/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
