<?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=358992&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / commande numéro loto]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=358992</link>
		<description><![CDATA[Les sujets les plus récents dans commande numéro loto.]]></description>
		<lastBuildDate>Mon, 16 Nov 2009 23:04:09 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  commande numéro loto]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3073964#p3073964</link>
			<description><![CDATA[<div class="quotebox"><cite>stefang7 a écrit&#160;:</cite><blockquote><div><p><em>une aide ou une preuve de supériorité</em>. J&#039;ai le droit, je ne suis pas français <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p></div></blockquote></div><p>une aide, j&#039;espère! une preuve de supériorité, sûrement pas <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /> c&#039;était avant tout une petite boutade <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>pour la commande, ce n&#039;est pas simplement plus court. Lorsque tu utilises un pipe (le &quot;|&quot;), cela créé un nouveau processus qui va prendre en entrée la sortie de ce qui est avant. Cela demande donc plus de ressources, ce qui est, je te l&#039;accorde, négligeable pour une petite commande mais c&#039;est bon à savoir. Si tu dois faire un script qui traite des centaines de fichiers, la moindre petite amélioration peut te faire gagner beaucoup de temps.<br />Voilà pour la petite remarque (encore une fois sans prétention!)</p><p>Bonne soirée</p>]]></description>
			<author><![CDATA[dummy@example.com (nesthib)]]></author>
			<pubDate>Mon, 16 Nov 2009 23:04:09 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3073964#p3073964</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  commande numéro loto]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3073435#p3073435</link>
			<description><![CDATA[<p>effectivement c&#039;est plus cour</p><div class="codebox"><pre><code>shuf -i 1-49 -n 5</code></pre></div><p>Pour l&#039;erreur d&#039;orthographe merci de la rectification. <em>une aide ou une preuve de supériorité</em>. J&#039;ai le droit, je ne suis pas français <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>PS : ha oui, il y a des fautes, tu peux les corriger ? merci <img src="http://forum.ubuntu-fr.org/img/smilies/cool.png" width="15" height="15" alt="cool" /></p>]]></description>
			<author><![CDATA[dummy@example.com (stefang7)]]></author>
			<pubDate>Mon, 16 Nov 2009 20:10:18 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3073435#p3073435</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  commande numéro loto]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3073047#p3073047</link>
			<description><![CDATA[<p>Surtout que ça fait une commande en plus pour moi (shuf) je fesais avec ramdom avant</p>]]></description>
			<author><![CDATA[dummy@example.com (n3o51)]]></author>
			<pubDate>Mon, 16 Nov 2009 18:13:33 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3073047#p3073047</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  commande numéro loto]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3072717#p3072717</link>
			<description><![CDATA[<div class="quotebox"><cite>stefang7 a écrit&#160;:</cite><blockquote><div><p>ha oui, si vous <em>avez un Bescherelle qui traine dans un coin</em>, faite<strong>s</strong> un geste à mon égar<strong>d</strong> <img src="http://forum.ubuntu-fr.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p></div></blockquote></div><p>désolé… j&#039;ai pas pu résister… <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>sinon pour les commandes, si tu lis le man de shuf, tu peux remplacer ton </p><div class="codebox"><pre><code>shuf -i 1-49 | head -n5</code></pre></div><p>par </p><div class="codebox"><pre><code>shuf -i 1-49 -n 5</code></pre></div><p>ça fait un processus de moins</p>]]></description>
			<author><![CDATA[dummy@example.com (nesthib)]]></author>
			<pubDate>Mon, 16 Nov 2009 15:53:37 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3072717#p3072717</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  commande numéro loto]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3072448#p3072448</link>
			<description><![CDATA[<p>ok merci de ta réponse</p><p><img src="http://forum.ubuntu-fr.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></description>
			<author><![CDATA[dummy@example.com (stefang7)]]></author>
			<pubDate>Mon, 16 Nov 2009 13:39:11 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3072448#p3072448</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  commande numéro loto]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3072314#p3072314</link>
			<description><![CDATA[<p>Bjr,<br />C&#039;est la commande &#039;shuf&#039; qui trie aléatoirement, ensuite head récupère les x premieres lignes. <br />Tu trouveras d&#039;autres solutions sur le forum, cette question a déjà été posé plusieurs fois.</p>]]></description>
			<author><![CDATA[dummy@example.com (AnsuzPeorth)]]></author>
			<pubDate>Mon, 16 Nov 2009 12:26:58 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3072314#p3072314</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  commande numéro loto]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3071365#p3071365</link>
			<description><![CDATA[<p>ha oui, si vous jouez les numéros que je viens de citer en exemple et que vous gagnez quelque chose, faite un geste à mon égare <img src="http://forum.ubuntu-fr.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (stefang7)]]></author>
			<pubDate>Sun, 15 Nov 2009 21:42:51 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3071365#p3071365</guid>
		</item>
		<item>
			<title><![CDATA[commande numéro loto]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3071359#p3071359</link>
			<description><![CDATA[<p>Bonjour, </p><p>j&#039;aimerais savoir si je suis le seul à demander &quot;gentiment&quot; à mon pc les numéros du loto avec cette commande que j&#039;ai trouvé sur un site : </p><div class="codebox"><pre><code>echo $(shuf -i 1-49 | head -n5 | sort -n) - $(shuf -i 1-10 | head -n1)</code></pre></div><p>ce qui donne par exemple : </p><p><em>stefan@stefan-laptop:~$ echo $(shuf -i 1-50 | head -n5 | sort -n) - $(shuf -i 1-10 | head -n1)<br />9 14 20 21 40 - 5<br /></em><br />cette commande, pour jouer au loto, permet de sortir au hasard 5 chiffres compris entre 1 et 49 puis le dernier numéro sert pour le numéro chance de 1 à 10</p><p>Pour info la commande de l&#039;euromillions est différente : </p><div class="codebox"><pre><code>echo $(shuf -i 1-50 | head -n5 | sort -n) - $(shuf -i 1-9 | head -n2)</code></pre></div><p>ce qui donne : </p><p><em>stefan@stefan-laptop:~$ echo $(shuf -i 1-50 | head -n5 | sort -n) - $(shuf -i 1-9 | head -n2)<br />5 25 35 39 47 - 8 3<br /></em></p><p>Cinq chiffres compris entre 1 et 50 et deux chiffres de 1 à 9 </p><p><strong><br />Maintenant, Ma question de débutant : </strong></p><p>Sur quoi cette commande se fixe t elle pour choisir ces chiffres ? </p><p>Merci de vos réponses.</p>]]></description>
			<author><![CDATA[dummy@example.com (stefang7)]]></author>
			<pubDate>Sun, 15 Nov 2009 21:41:18 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3071359#p3071359</guid>
		</item>
	</channel>
</rss>
