Alors, suite à l’ajout de l’option v dans le script, voici le retour :
++ sed -e 's#§\(.*\)|-|#<dd>\1</dd>#g;s#<dd>\(.*\)</dd>#<dd>Code pour insérer l'\''image sur votre site web : <br><input type="text" readonly="readonly" size="224" value="<a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a>"><br>\1</dd>#g'
sed: -e expression n°1, caractère 256: commande inconnue: `�'
[strike]Cela m’est toujours autant “cryptique” ?![/strike]
Bon, j’ai corrigé en enlevant ceci ‘;s/’/'/g;’ de la variable entities …
Grrr, mais maintenant cela me retourne l’ensemble du code traité au lieu de me retourner que la valeur de la variable info, dans l’attribut valeur …
+ info='<a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a>'
+ echo '<a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a>'
<a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a>
sed -e "s#title=\"\"#title=\"${title}\"#g;s#alt=\"\"#alt=\"${fichier}\"#g" <<< "${urls[index]}"
++ sed -e 's#title=""#title=""#g;s#alt=""#alt="Capture d'\''écran_2014-09-30-15-16-15.png"#g'
+ urls[index]='§<a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a>|-|'
sed -e "${patterns[index]};s#<dd>\(.*\)</dd>#<dd>${text_toilelibre[index]}<br><input type=\"text\" readonly=\"readonly\" size=\"${#urls[index]}\" value=\"${info}\"><br>\1</dd>#g" <<< "${urls[index]}"
++ sed -e 's#§\(.*\)|-|#<dd>\1</dd>#g;s#<dd>\(.*\)</dd>#<dd>Code pour insérer l'\''image sur votre site web : <br><input type="text" readonly="readonly" size="224" value="<a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a>"><br>\1</dd>#g'
+ urls[index]='<dd>Code pour insérer l'\''image sur votre site web : <br><input type="text" readonly="readonly" size="224" value="<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>lt;a href=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;http://pix.toile-libre.org/?img=1436948630.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot; title=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;Capture d'\''écran_2014-09-30-15-16-15.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>gt;<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>lt;img alt=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;Capture d'\''écran_2014-09-30-15-16-15.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot; src=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;http://pix.toile-libre.org/upload/img/1436948630.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;/<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>gt;<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>lt;/a<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>gt;"><br><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>'
+ echo '<dd>Code pour insérer l'\''image sur votre site web : <br><input type="text" readonly="readonly" size="224" value="<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>lt;a href=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;http://pix.toile-libre.org/?img=1436948630.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot; title=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;Capture d'\''écran_2014-09-30-15-16-15.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>gt;<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>lt;img alt=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;Capture d'\''écran_2014-09-30-15-16-15.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot; src=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;http://pix.toile-libre.org/upload/img/1436948630.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;/<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>gt;<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>lt;/a<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>gt;"><br><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'\''écran_2014-09-30-15-16-15.png"><img alt="Capture d'\''écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>'
<dd>Code pour insérer l'image sur votre site web : <br><input type="text" readonly="readonly" size="224" value="<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>lt;a href=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;http://pix.toile-libre.org/?img=1436948630.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot; title=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;Capture d'écran_2014-09-30-15-16-15.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>gt;<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>lt;img alt=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;Capture d'écran_2014-09-30-15-16-15.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot; src=<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;http://pix.toile-libre.org/upload/img/1436948630.png<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>quot;/<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>gt;<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>lt;/a<dd><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>gt;"><br><a href="http://pix.toile-libre.org/?img=1436948630.png" title="Capture d'écran_2014-09-30-15-16-15.png"><img alt="Capture d'écran_2014-09-30-15-16-15.png" src="http://pix.toile-libre.org/upload/img/1436948630.png"/></a></dd>
unset patterns
Pourquoi il boucle sur l’ensemble du code, maintenant ???