J'ai un fichier de format:Linux texte Manipulation du fichier
<a href="http://www.wowhead.com/?search=Superior Mana Oil">
<a href="http://www.wowhead.com/?search=Tabard of Brute Force">
<a href="http://www.wowhead.com/?search=Tabard of the Wyrmrest Accord">
<a href="http://www.wowhead.com/?search=Tattered Hexcloth Sack">
je dois sélectionner le texte après le signe =, mais avant le "et imprimer à la fin de la ligne, en ajoutant de sorte qu'il devient pour exemple:
<a href="http://www.wowhead.com/?search=Superior Mana Oil">Superior Mana Oil</a>
<a href="http://www.wowhead.com/?search=Tabard of Brute Force">Tabard of Brute Force</a>
<a href="http://www.wowhead.com/?search=Tabard of the Wyrmrest Accord">Tabard of the Wyrmrest Accord</a>
<a href="http://www.wowhead.com/?search=Tattered Hexcloth Sack">Tattered Hexcloth Sack</a>
Je ne suis pas sûr de la meilleure façon de le faire via la ligne de commande linux (je suppose probablement sed/awk mais pas bien avec eux), serait idéalement comme un script que je peux nourrir le nom du fichier par exemple ./fixlink.sh brokenlinks.txt
Essayez d'écrire le script et lancez-le. Quand/Si vous obtenez des erreurs, affichez-les ici et de l'aide sera disponible. "S'il vous plaît écrire mes scripts pour moi" les questions de type ne sont pas très encouragés ici. –