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

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: crlf</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Delete CRLF from windows file</title>
        <link>http://www.posteet.com/view/485</link>
        <description>
        <![CDATA[<pre>mv file.txt file.bak; tr -d '\r' &lt; file.bak&gt; file.txt</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/crlf">[crlf]</a>  <a href="http://www.posteet.com/tags/lf">[lf]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a> ]]>        </description>
        <dc:creator>frycake</dc:creator>
        <pubDate>Tue, 20 Nov 2007 02:03:25 +0100</pubDate>

            <category>bash</category>
            <category>crlf</category>
            <category>lf</category>
            <category>linux</category>
    
    </item>

  
    <item>
        <title>Remplacer les CRLF par des LF</title>
        <link>http://www.posteet.com/view/242</link>
        <description>
        <![CDATA[<pre># Permet de remplacer les CRLF de fin de lignes par des LF dans l'ensemble des fichiers listés par le find
# NB : on crée obligatoirement un nouveau fichier avant de remplacer l'original, sinon on risque de se retrouver avec un fichier vide

for i in `find . -name '*.sh' -print`;do echo &quot;Traitement de $i...&quot;;sed 's/\x0D$//' $i &gt; $i.CRLFtoLF;mv -f $i.CRLFtoLF $i;done

# Ne pas omettre de rendre a nouveau executable les scripts Shell
for i in `find . -name '*.sh' -print`;do echo &quot;Traitement de $i...&quot;; chmod +x $i;done</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/crlf">[crlf]</a>  <a href="http://www.posteet.com/tags/lf">[lf]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/sed">[sed]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Tue, 06 Nov 2007 09:51:42 +0100</pubDate>

            <category>bash</category>
            <category>crlf</category>
            <category>lf</category>
            <category>linux</category>
            <category>sed</category>
    
    </item>


</channel>
</rss>
