<?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=362709&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [résolu] Découpage chaine avec délimiteurs présent plusieurs fois]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=362709</link>
		<description><![CDATA[Les sujets les plus récents dans [résolu] Découpage chaine avec délimiteurs présent plusieurs fois.]]></description>
		<lastBuildDate>Tue, 01 Dec 2009 22:22:30 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [résolu] Découpage chaine avec délimiteurs présent plusieurs fois]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3110705#p3110705</link>
			<description><![CDATA[<p>aller ! va pour ta facon de tordue <img src="http://forum.ubuntu-fr.org/img/smilies/lol.png" width="15" height="15" alt="lol" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Hizoka)]]></author>
			<pubDate>Tue, 01 Dec 2009 22:22:30 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3110705#p3110705</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [résolu] Découpage chaine avec délimiteurs présent plusieurs fois]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3110320#p3110320</link>
			<description><![CDATA[<p>Peut-être tordue mais... </p><div class="quotebox"><blockquote><div><p>time { uneChaine=&quot;--title=\&quot;Ceci est un titre\&quot; --text=\&quot;Et en voici son contenu\&quot; --icon=\&quot;adresse icone\&quot; --heure=\&quot;il est 23h\&quot;&quot;; for((x=0;x&lt;=10000; x++)); do texte=&quot;$(sed &#039;s/--text=&quot;[^&quot;]*&quot; //&#039; &lt;&lt;&lt; &quot;${uneChaine}&quot;)&quot;;done ; }</p><p>real&#160; &#160; 0m24.387s<br />user&#160; &#160; 0m9.673s<br />sys&#160; &#160; 0m13.157s</p><p>time { uneChaine=&quot;--title=\&quot;Ceci est un titre\&quot; --text=\&quot;Et en voici son contenu\&quot; --icon=\&quot;adresse icone\&quot; --heure=\&quot;il est 23h\&quot;&quot;; for((x=0;x&lt;=10000; x++)); do oldIFS=&quot;${IFS}&quot;; IFS=&quot;--&quot;; texte=( ${uneChaine} ); IFS=&quot;${oldIFS}&quot;; texte=( &quot;${texte[@]/#/--}&quot; ) ; texte=( &quot;${texte[@]/--text=*}&quot; ); texte=${texte[@]/%--}; done ; }</p><p>real&#160; &#160; 0m3.440s<br />user&#160; &#160; 0m3.440s<br />sys&#160; &#160; 0m0.004s</p></div></blockquote></div><p>^^ <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Totor)]]></author>
			<pubDate>Tue, 01 Dec 2009 20:12:30 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3110320#p3110320</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [résolu] Découpage chaine avec délimiteurs présent plusieurs fois]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3109743#p3109743</link>
			<description><![CDATA[<p>un chouille plus tordue en effet <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Hizoka)]]></author>
			<pubDate>Tue, 01 Dec 2009 16:43:10 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3109743#p3109743</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [résolu] Découpage chaine avec délimiteurs présent plusieurs fois]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3109688#p3109688</link>
			<description><![CDATA[<p>Bonsoir,</p><p>une façon très tordue de le faire :</p><div class="codebox"><pre><code>uneChaine=&quot;--title=\&quot;Ceci est un titre\&quot; --text=\&quot;Et en voici son contenu\&quot; --icon=\&quot;adresse icone\&quot; --heure=\&quot;il est 23h\&quot;&quot;
oldIFS=&quot;${IFS}&quot;
IFS=&quot;--&quot;
# transformation en tableau
uneChaine=( ${uneChaine} )
IFS=&quot;${oldIFS}&quot;
# restauration des -- supprimés par la transformation en tableau
uneChaine=( &quot;${uneChaine[@]/#/--}&quot; )
# suppression de l&#039;élément souhaité
uneChaine=( &quot;${uneChaine[@]/--text=*}&quot; )
# suppression des -- superfux
uneChaine=${uneChaine[@]/%--}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Totor)]]></author>
			<pubDate>Tue, 01 Dec 2009 16:23:23 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3109688#p3109688</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [résolu] Découpage chaine avec délimiteurs présent plusieurs fois]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3108442#p3108442</link>
			<description><![CDATA[<p>bon j&#039;ai résolu en faisant ça :</p><div class="codebox"><pre><code>sed &#039;s/--text=&quot;[^&quot;]*&quot; //&#039;</code></pre></div><p>Pour ceux que ça intéresse, cela veut dire :</p><div class="codebox"><pre><code> s : remplace (sed &#039;s/ancine/nouveau/&#039;)
 [^&quot;] : tout sauf &quot;
 [^&quot;]* : tout sauf * autant de fois de suite que besoin
 [^&quot;]*&quot; : tout sauf * autant de fois de suite que besoin jusqu&#039;à &quot; (comme par hasard :p)
 --text=&quot;[^&quot;]*&quot; : recherche donc un texte qui commence par --text et qui se termine par &quot;
 // :remplace le texte précédant par &quot;rien&quot; (donc supprime).</code></pre></div><p>de ce fait ça fonctionne <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Hizoka)]]></author>
			<pubDate>Mon, 30 Nov 2009 22:44:40 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3108442#p3108442</guid>
		</item>
		<item>
			<title><![CDATA[[résolu] Découpage chaine avec délimiteurs présent plusieurs fois]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3108340#p3108340</link>
			<description><![CDATA[<p>Bonsoir !</p><p>je me prends la tête depuis un petit moment là...</p><p>je vous expose mon probleme :</p><p>Soit la chaine :</p><div class="codebox"><pre><code>--title=&quot;Ceci est un titre&quot; --text=&quot;Et en voici son contenu&quot; --icon=&quot;adresse icone&quot; --heure=&quot;il est 23h&quot;</code></pre></div><p>je voudrais supprimer toute la partie :</p><div class="codebox"><pre><code>--text =&gt; jusqu&#039;au prochain -- (donc la --icon).</code></pre></div><p>donc il me resterait :</p><div class="codebox"><pre><code>--title=&quot;Ceci est un titre&quot; --icon=&quot;adresse icone&quot; --heure=&quot;il est 23h&quot;</code></pre></div><p>Sachant que cela sera TOUJOURS --texte mais que le -- suivant sera lui différent...</p><p>j&#039;ai passé 3 plombs sur SED, je sais qu&#039;il le permet mais je n&#039;y arrive pas...</p><p>je ne poste pas toutes les solutions que j&#039;ai testé....</p><p>merci !!!</p>]]></description>
			<author><![CDATA[dummy@example.com (Hizoka)]]></author>
			<pubDate>Mon, 30 Nov 2009 22:01:40 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3108340#p3108340</guid>
		</item>
	</channel>
</rss>
