<?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/"
    xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" >
<channel>
    
    <title>fail2fail - Linux</title>
    <link>http://www.fail2fail.com/</link>
    <description>perfectionism or disability?</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.6 - http://www.s9y.org/</generator>
    
    

<item>
    <title>Setup the environment depending on the host the user logins from</title>
    <link>http://www.fail2fail.com/archives/44-Setup-the-environment-depending-on-the-host-the-user-logins-from.html</link>
            <category>Linux</category>
    
    <comments>http://www.fail2fail.com/archives/44-Setup-the-environment-depending-on-the-host-the-user-logins-from.html#comments</comments>
    <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=44</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.fail2fail.com/rss.php?version=2.0&amp;type=comments&amp;cid=44</wfw:commentRss>
    

    <author>nospam@example.com (Juri Hamburg)</author>
    <content:encoded>
    &lt;p class=&quot;whiteline&quot;&gt;Just spent about 20 minutes to answer a &lt;a href=&quot;http://stackoverflow.com/questions/9035228/unix-profile-detect-who-logged-in&quot;&gt;question on stackoverflow&lt;/a&gt; and as I was ready to commit it, the question got already closed. It would be a pity to throw the answer away, so i&#039;ll paste it here. &lt;img src=&quot;http://www.fail2fail.com/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Hi there. You could script around the outputs of &lt;tt&gt;who&lt;/tt&gt;.&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&amp;#160; &amp;#160; &lt;span style=&quot;color: #007800;&quot;&gt;$who&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; jham &amp;#160; &amp;#160; pts&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;13&lt;/span&gt; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;2012&lt;/span&gt;-01-&lt;span style=&quot;color: #000000;&quot;&gt;27&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;10&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;48&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;somehost&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; jham &amp;#160; &amp;#160; pts&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;14&lt;/span&gt; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;2012&lt;/span&gt;-01-&lt;span style=&quot;color: #000000;&quot;&gt;27&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;16&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;45&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;localhost.localdomain&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;

&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;we want to know only the user associated with stdin:&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&amp;#160; &amp;#160; &lt;span style=&quot;color: #007800;&quot;&gt;$who&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-m&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; jham &amp;#160; &amp;#160; pts&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;14&lt;/span&gt; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;2012&lt;/span&gt;-01-&lt;span style=&quot;color: #000000;&quot;&gt;27&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;16&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;45&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;localhost.localdomain&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;now get the host only and save to a variable:  &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&amp;#160; &amp;#160; &lt;span style=&quot;color: #007800;&quot;&gt;myhost&lt;/span&gt;=$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;who&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-m&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;head&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-n1&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;awk&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;{printf $5}&#039;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sed&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;s/(\(.*\))/\1/&#039;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;define group of hostnames to react:&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&amp;#160; &amp;#160; &lt;span style=&quot;color: #007800;&quot;&gt;goodhosts&lt;/span&gt;=&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;goodhost anotherhost localhost.localdomain&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;react: &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&amp;#160; &amp;#160; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;${goodhosts[@]}&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$myhost&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;good host&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;;;&lt;/span&gt; &lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;bad host&amp;quot;&lt;/span&gt; &lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;;;&lt;/span&gt; &lt;br /&gt;&amp;#160; &amp;#160; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;esac&lt;/span&gt;&lt;/div&gt;

&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;You could put it into a file which is sourced on login (like &lt;tt&gt;.profile&lt;/tt&gt;, depending on your configuration).&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 27 Jan 2012 17:55:25 +0100</pubDate>
    <guid isPermaLink="false">http://www.fail2fail.com/archives/44-guid.html</guid>
    <category>bash</category>
<category>linux</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Mehrere Benutzer auf einer Soundkarte mit ALSA</title>
    <link>http://www.fail2fail.com/archives/22-Mehrere-Benutzer-auf-einer-Soundkarte-mit-ALSA.html</link>
            <category>Linux</category>
    
    <comments>http://www.fail2fail.com/archives/22-Mehrere-Benutzer-auf-einer-Soundkarte-mit-ALSA.html#comments</comments>
    <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=22</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.fail2fail.com/rss.php?version=2.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    

    <author>nospam@example.com (Juri Hamburg)</author>
    <content:encoded>
    &lt;p class=&quot;whiteline&quot;&gt;In einigen Fällen laufen gleichzeitig mehrere Xsessions mit verschiedenen Benutzern. Oft ist das Problem bei Umgebungen ohne Soundserver wie Pulseaudio oder ESD, dass ein Benutzer das Ausgabegerät blockiert und andere somit ohne Audio-Wiedergabe zurecht kommen müssen. Auch falls ein Musik-Daemon wie MPD über eigenen Benutzer läuft, kann es mit dem Xsession-Benutzer eine Schlacht ganz nach &quot;wer zuerst kommt, mahlt zuerst&quot; um das Gerät geben.
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Eine mögliche 3-Schritte-Lösung für ALSA setzt auf der Benutzung des dmix-Plugins auf:&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.fail2fail.com/archives/22-Mehrere-Benutzer-auf-einer-Soundkarte-mit-ALSA.html#extended&quot;&gt;Continue reading &quot;Mehrere Benutzer auf einer Soundkarte mit ALSA&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 27 Jan 2010 21:19:34 +0100</pubDate>
    <guid isPermaLink="false">http://www.fail2fail.com/archives/22-guid.html</guid>
    <category>alsa</category>
<category>archlinux</category>
<category>linux</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Entfernen aller Dateien, die zuvor mit unzip extrahiert wurden</title>
    <link>http://www.fail2fail.com/archives/34-Entfernen-aller-Dateien,-die-zuvor-mit-unzip-extrahiert-wurden.html</link>
            <category>Linux</category>
    
    <comments>http://www.fail2fail.com/archives/34-Entfernen-aller-Dateien,-die-zuvor-mit-unzip-extrahiert-wurden.html#comments</comments>
    <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=34</wfw:comment>

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

    <author>nospam@example.com (Juri Hamburg)</author>
    <content:encoded>
    &lt;p class=&quot;whiteline&quot;&gt;Auch wenn sowas nach einigen Jahren Erfahrung nicht passieren sollte: ein Mal guckt man nicht in die Dateiliste eines Archivs vor dem Entpacken und schon hat man ein Verzeichnis zugemüllt. Heute speziell bei mir: unzip.
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Da das nun nicht das erste (und wohl auch nicht das letzte) Mal gewesen ist - ein schmutziger &quot;Einzeiler&quot; für die bash für das Entfernen der zuvor &lt;strong&gt;mit unzip&lt;/strong&gt; entpackten Dateien, damit ich beim nächsten mal nicht wieder Zeit verliere. Anzuwenden im selben Ordner, in dem die Dateien entpackt worden sind und in dem das Archiv liegt. &lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-p&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;tmp&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;trash; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;unzip&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-l&lt;/span&gt; ARCHIV.zip &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tail&lt;/span&gt; -n+&lt;span style=&quot;color: #000000;&quot;&gt;4&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; \&lt;br /&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;head&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-n-2&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tr&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-s&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; \&lt;br /&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;read&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-r&lt;/span&gt; line; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;do&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$line&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cut&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-d&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039; &#039;&lt;/span&gt; -f5; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;done&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; \&lt;br /&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;xargs&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-I&lt;/span&gt; moveme &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mv&lt;/span&gt; moveme &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;tmp&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;trash;&lt;/div&gt;&lt;/pre&gt;&lt;p&gt;Der Skript wird leider alle beim Entpacken erstellte Ordner nicht löschen (war bei mir in diesem Fall nicht relevant). Da könnte einem hinterher noch folgendes behilflich sein:&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;find&lt;/span&gt; . &lt;span style=&quot;color: #660033;&quot;&gt;-depth&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-type&lt;/span&gt; d &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;xargs&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;rmdir&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;/&lt;/span&gt;dev&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;null&lt;/div&gt;&lt;/pre&gt;&lt;p&gt;Das soll im Arbeitsverzeichnis rekursiv alle leeren Ordner löschen. Nicht elegant, aber wer braucht schon leere Ordner? *hust*&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Für das regexen der Ordnernamen aus der Archiv-Dateiliste war ich (noch) zu faul.&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;Achtung: getestet nur an einem meinen konkreten Fall, ohne Gewähr, etc.
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Update:&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Lösung für das Mitnehmen von Ordnern wäre:&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-p&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;tmp&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;trash; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;unzip&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-l&lt;/span&gt; ARCHIV.zip &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tail&lt;/span&gt; -n+&lt;span style=&quot;color: #000000;&quot;&gt;4&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; \&lt;br /&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;head&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-n-2&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tr&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-s&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; \&lt;br /&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;read&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-r&lt;/span&gt; line; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;do&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$line&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cut&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-d&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039; &#039;&lt;/span&gt; -f5; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;done&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cut&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-d&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;/&#039;&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-f1&lt;/span&gt; \&lt;br /&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;xargs&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-I&lt;/span&gt; moveme &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mv&lt;/span&gt; moveme &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;tmp&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;trash &lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dev&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;null;&lt;/div&gt;&lt;/pre&gt;&lt;p&gt;(Ungetestet). Hier besteht allerdings die Gefahr, dass man Ordner, die vor dem Entpacken des Archivs existierten, mitnimmt. &lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 23 Oct 2010 01:28:14 +0200</pubDate>
    <guid isPermaLink="false">http://www.fail2fail.com/archives/34-guid.html</guid>
    <category>bash</category>
<category>linux</category>
<category>misc</category>
<category>unzip</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>

</channel>
</rss>
