<?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=1067141&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [Résolu] Renommer en additionnant]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1067141</link>
		<description><![CDATA[Les sujets les plus récents dans [Résolu] Renommer en additionnant.]]></description>
		<lastBuildDate>Sat, 13 Oct 2012 15:45:02 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] Renommer en additionnant]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110331#p11110331</link>
			<description><![CDATA[<p>Je t&#039;encourage à lire le man de bash :</p><div class="codebox"><pre><code>man bash</code></pre></div><p>à la section « Parameter Expansion », une fois dans le man :</p><div class="codebox"><pre><code>/Parameter Expansion[entrée]</code></pre></div><p><img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>NB. en gros c&#039;est pour retravailler le texte contenu dans une variable.<br />NB2. pense à modifier ton premier message pour ajouter [résolu] au début du titre</p>]]></description>
			<author><![CDATA[dummy@example.com (nesthib)]]></author>
			<pubDate>Sat, 13 Oct 2012 15:45:02 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110331#p11110331</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] Renommer en additionnant]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110271#p11110271</link>
			<description><![CDATA[<p>tu peux brièvement m&#039;expliquer la fonction de #, ##, % que tu ma donné pour la boucle ?</p><p>Merci encore ;-)</p>]]></description>
			<author><![CDATA[dummy@example.com (weezixx)]]></author>
			<pubDate>Sat, 13 Oct 2012 15:39:30 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110271#p11110271</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] Renommer en additionnant]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110261#p11110261</link>
			<description><![CDATA[<p>Tu peux faire ça en zsh :</p><div class="codebox"><pre><code>zmv -n &#039;CD2/(*) ([0-9]*).wav&#039; &#039;CD2/$1 $(($2+28)).wav&#039;</code></pre></div><p>(enlève le -n pour appliquer la commande)</p>]]></description>
			<author><![CDATA[dummy@example.com (nesthib)]]></author>
			<pubDate>Sat, 13 Oct 2012 15:37:46 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110261#p11110261</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] Renommer en additionnant]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110201#p11110201</link>
			<description><![CDATA[<p>Ça marche super ! </p><p>Mais j&#039;ai une question, on aurait pas pu faire juste trouver le numéro du fichier (avec une regex) et en lui ajoutant 28 et tout ça en boucle ?</p>]]></description>
			<author><![CDATA[dummy@example.com (weezixx)]]></author>
			<pubDate>Sat, 13 Oct 2012 15:31:28 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110201#p11110201</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] Renommer en additionnant]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110081#p11110081</link>
			<description><![CDATA[<p>D&#039;où l&#039;importance de donner tous les détails de son problème <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>remplace les lignes 3 et 4 de ma commande précédente par :</p><div class="codebox"><pre><code>    numero=&quot;${fichier##* }&quot;
    numero=&quot;${numero%.wav}&quot;
    nouveau_fichier=&quot;${fichier% *} $((28+${numero})).wav&quot;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nesthib)]]></author>
			<pubDate>Sat, 13 Oct 2012 15:21:47 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110081#p11110081</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] Renommer en additionnant]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110041#p11110041</link>
			<description><![CDATA[<p>Ça me pose en effet des soucis au niveau de l&#039;extension : </p><div class="codebox"><pre><code>bash: 28+10.wav : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est &quot;.wav&quot;)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (weezixx)]]></author>
			<pubDate>Sat, 13 Oct 2012 15:18:20 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11110041#p11110041</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] Renommer en additionnant]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11109781#p11109781</link>
			<description><![CDATA[<p>Tu ne donnes pas assez de détails pour qu&#039;on te donne une réponse complète (notamment sur la localisation des fichiers du second CD). Admettons que les pistes du CD1 soient dans ./CD1/ et celles du CD2 dans ./CD2/<br />Admettons aussi que tu utilises une version récente de bash (ex. 4.2) et que tes fichiers n&#039;ont pas d&#039;extension (s&#039;il y en a une il suffira d&#039;une ou deux étapes supplémentaires)</p><div class="codebox"><pre><code>for fichier in CD2/*
do
    numero=&quot;${fichier##* }&quot;
    nouveau_fichier=&quot;${fichier% *} $((28+${numero}))&quot;
    echo mv &quot;${fichier}&quot; &quot;${nouveau_fichier}&quot;
done
echo mv ./CD2/* ./CD1/</code></pre></div><p>supprime les « echo » pour effectuer le déplacement une fois que tu as confirmé que ça fonctionne</p>]]></description>
			<author><![CDATA[dummy@example.com (nesthib)]]></author>
			<pubDate>Sat, 13 Oct 2012 15:01:14 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11109781#p11109781</guid>
		</item>
		<item>
			<title><![CDATA[[Résolu] Renommer en additionnant]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11109591#p11109591</link>
			<description><![CDATA[<p>Bonjour,</p><p>j&#039;ai des musiques venant d&#039;un cd, et donc ça donne track 1, track 2, … </p><p>comme c&#039;est le 2e cd j&#039;aurai aimé que ça suive dans l&#039;ordre du 1er …</p><p>Le 1er va de 1 à 28, donc j&#039;aurai voulu que ça suive avec track 29, track 30 etc </p><p>et le tout en ligne de commande si possible ^^ </p><p>J&#039;ai imaginé qu&#039;on puisse isolé le chiffre et faire une simple addition, track {1+28}, track {2+28}, …</p><p>J&#039;espère que vous me suivez toujours ^^</p><p>Merci</p>]]></description>
			<author><![CDATA[dummy@example.com (weezixx)]]></author>
			<pubDate>Sat, 13 Oct 2012 14:35:57 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11109591#p11109591</guid>
		</item>
	</channel>
</rss>
