<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1066461&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [RESOLU]Aide commande Sed]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1066461</link>
		<description><![CDATA[Les sujets les plus récents dans [RESOLU]Aide commande Sed.]]></description>
		<lastBuildDate>Sat, 13 Oct 2012 22:57:17 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU]Aide commande Sed]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11114711#p11114711</link>
			<description><![CDATA[<p>En fait ça a fonctionné je me suis juste trompé de fichier à la relecture, probablement que le fait qu&#039;il soit 1 heure du mat y est pour quelquechose <img src="http://forum.ubuntu-fr.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Merci encore nesthib:)</p>]]></description>
			<author><![CDATA[dummy@example.com (sabnac)]]></author>
			<pubDate>Sat, 13 Oct 2012 22:57:17 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11114711#p11114711</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU]Aide commande Sed]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11114411#p11114411</link>
			<description><![CDATA[<p>peux-tu donner un extrait de ton fichier et expliquer clairement le résultat attendu ?</p>]]></description>
			<author><![CDATA[dummy@example.com (nesthib)]]></author>
			<pubDate>Sat, 13 Oct 2012 21:44:02 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11114411#p11114411</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU]Aide commande Sed]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11114381#p11114381</link>
			<description><![CDATA[<p>Merci Nesthib. Maintennt je suis dans la deuxième phase de mon problème.</p><br /><p>En effet j&#039;ai un fichier texte de 34 M où le but est d&#039;extraire ces deux chaînes de caractères à chaque fois qu&#039;elles se présentent de la manière suivante:</p><p>&quot;author_name&quot;:&quot;Paul&quot; message&quot;:&quot;texte_isoler\n&quot;<br />&quot;author_name&quot;:&quot;Paul&quot; message&quot;:&quot;texte_isoler\n&quot;<br />&quot;author_name&quot;:&quot;Paul&quot; message&quot;:&quot;texte_isoler\n&quot;<br />&quot;author_name&quot;:&quot;Paul&quot; message&quot;:&quot;texte_isoler\n&quot;</p><p>Et cela n&#039;a pas l&#039;air de fonctionner. Je ne sais pas comment faire le traitement multiligne. J&#039;ai bien tenté ce qui est expliqué sur le site suivant mais sans succès<br /><a href="http://www.siteduzero.com/tutoriel-3-287602-la-commande-sed.html">http://www.siteduzero.com/tutoriel-3-28 … e-sed.html</a></p><br /><p>Je peux encore solliciter ton aide et si possible ton explication?</p><p>Merci d&#039;avance.</p><p>extrait</p>]]></description>
			<author><![CDATA[dummy@example.com (sabnac)]]></author>
			<pubDate>Sat, 13 Oct 2012 21:37:15 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11114381#p11114381</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU]Aide commande Sed]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11103741#p11103741</link>
			<description><![CDATA[<p>[…] ← n&#039;importe quel caractère parmi …<br />^… ← inversion du groupe … (donc ici, tout sauf un double guillemet)<br />…* ← 0 fois ou plus le caractère/groupe … précédent<br />\(…\) ← garde en mémoire l&#039;expression trouvée qui correspond à …</p><p>en résumé, ça garde en mémoire dans \1 (ou \2) une suite de caractère qui ne comporte pas de « &quot; » et qui est elle même entourée de ces guillemets <strong>&quot;</strong>\([^&quot;]\)<strong>&quot;</strong></p>]]></description>
			<author><![CDATA[dummy@example.com (nesthib)]]></author>
			<pubDate>Fri, 12 Oct 2012 21:41:52 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11103741#p11103741</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU]Aide commande Sed]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11103491#p11103491</link>
			<description><![CDATA[<p>Merci nesthib pour cette réponse rapide. Je n&#039;arrive pas à comprendre comment fonctionne la commande.</p><p>Pourrais tu me donner quelques explications? Notamment sur cette partie: <br />\([^&quot;]*\)</p>]]></description>
			<author><![CDATA[dummy@example.com (sabnac)]]></author>
			<pubDate>Fri, 12 Oct 2012 21:12:52 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11103491#p11103491</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU]Aide commande Sed]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11103261#p11103261</link>
			<description><![CDATA[<p>La façon la plus propre de faire à mes yeux est :</p><div class="codebox"><pre><code>sed &#039;s/.*&quot;author_name&quot;:&quot;\([^&quot;]*\)&quot;.*&quot;snippet&quot;:&quot;\([^&quot;]*\)&quot;.*/&quot;author_name&quot;:&quot;\1&quot; message&quot;:&quot;\2&quot;/&#039; fichier</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nesthib)]]></author>
			<pubDate>Fri, 12 Oct 2012 20:57:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11103261#p11103261</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLU]Aide commande Sed]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11102961#p11102961</link>
			<description><![CDATA[<p>Bonjoue à tous!</p><p>J&#039;ai besoin de votre aide sur une commande SED.</p><p>J&#039;ai un fichier texte qui contiens du html, seule quelques chaines de caractères&#160; m&#039;interesse et je voudrais les extraire avec une commande sed.<br />par exemple j&#039;ai la ligne suivante:</p><div class="codebox"><pre><code>&quot;author_name&quot;:&quot;Paul&quot;,&quot;thread_name&quot;:&quot;Paul&quot;,&quot;snippet&quot;:&quot;texte_isoler\n&quot;,&quot;message&quot;:&quot;texte_isoler\n&quot;,</code></pre></div><p>Je veux le découper de la manière à obtenir ceci:<br />&quot;snippet&quot;:&quot;texte_isoler\n&quot;</p><p>Je fais donc la commande sed suivante</p><div class="codebox"><pre><code>sed -e &#039;s/.*\(&quot;snippet&quot;:&quot;.*\),&quot;.*/\1/g&#039; test
&quot;snippet&quot;:&quot;texte_isoler\n&quot;</code></pre></div><br /><p>Le résultat est donc ok.<br />Maintenant je souhaiterais pouvoir obtenir ceci:</p><div class="codebox"><pre><code>&quot;author_name&quot;:&quot;Paul&quot; message&quot;:&quot;texte_isoler\n&quot;</code></pre></div><br /><p>Je n&#039;y arrive pas, pourriez vous m&#039;aider?</p><br /><p>Merci d&#039;avance</p>]]></description>
			<author><![CDATA[dummy@example.com (sabnac)]]></author>
			<pubDate>Fri, 12 Oct 2012 20:36:42 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11102961#p11102961</guid>
		</item>
	</channel>
</rss>
