<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>The IT Kraut - Linux</title>
    <link>http://www.itkrauts.com/</link>
    <description>Milchtüte 2.0 - Sebastian Bauer's blog, revised.. - Adobe AIR, Android and more</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4.1 - http://www.s9y.org/</generator>
    <pubDate>Mon, 07 Sep 2009 12:30:05 GMT</pubDate>

    <image>
        <url>http://www.itkrauts.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: The IT Kraut - Linux - Milchtüte 2.0 - Sebastian Bauer's blog, revised.. - Adobe AIR, Android and more</title>
        <link>http://www.itkrauts.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Creating Dummy Files with a specified size under Linux</title>
    <link>http://www.itkrauts.com/archives/9-Creating-Dummy-Files-with-a-specified-size-under-Linux.html</link>
            <category>Linux</category>
    
    <comments>http://www.itkrauts.com/archives/9-Creating-Dummy-Files-with-a-specified-size-under-Linux.html#comments</comments>
    <wfw:comment>http://www.itkrauts.com/wfwcomment.php?cid=9</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.itkrauts.com/rss.php?version=2.0&amp;type=comments&amp;cid=9</wfw:commentRss>
    

    <author>nospam@example.com (Sebastian Bauer)</author>
    <content:encoded>
    Today I was asked how to automatically create multiple non-empty dummy files under linux with just one command. Here is a small bash script. To adjust the number of files to be created, adjust the &quot;10&quot; in &quot;$(seq 0 10)&quot; to a number of your choice. To adjust the file size to be created, change &quot;count=2&quot; to anything you like. The &quot;bs&quot; parameter defines the base for the count parameter. bs=1024 means that 1024 bytes * &quot;count&quot; is the file size. In this case it&#039;s 2kilobyte. To have 1MB files you could either write &quot;bs=1024 count=1024&quot; or &quot;bs=$((1024*1024)) count=2&quot; or &quot;bs=1024 count=$((1024*1))&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;textarea name=&quot;code&quot; class=&quot;bash&quot;&gt;#!/bin/bash
for i in $(seq 0 10);
do
    echo -n &quot;file${i} &quot;;
    dd if=/dev/zero of=file${i} bs=1024 count=2 2&gt;&amp;1;
done&lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;
PS: there seems to be a problem with the bash highlighter of dp.SyntaxHighlighter: on line 4 the first &quot;if&quot; after dd is one if too much. The line should be &quot;dd if=/dev/zero of=file${i} bs=1024 count=2 2&gt;&amp;1;&quot; 
    </content:encoded>

    <pubDate>Mon, 07 Sep 2009 14:03:31 +0200</pubDate>
    <guid isPermaLink="false">http://www.itkrauts.com/archives/9-guid.html</guid>
    
</item>

</channel>
</rss>