Usuario:Flakinho/listas3/script
Apariencia
Para:
# [[:Abarema_centiflora]] # <s>[[:Abarema_centiflora]]</s> # [[:Abarema_cochliacarpos]] # <s>[[:Abarema_cochliacarpos]]</s> # [[:Abarema_filamentosa]] # <s>[[:Abarema_filamentosa]]</s> # [[:Abarema_ganymedea]] # <s>[[:Abarema_ganymedea]]</s> # [[:Abarema_killipii]] # [[:Abarema_obovata]] # <s>[[:Abarema_obovata]]</s>
Aplicar en Linux:
comp1=0 for i in `cat Abarema\ centiflora.txt | sed 's/.*\[\[/\[\[/' | sed 's/\]\].*/\]\]/'`; do comp2=$i if [ $comp1 = $comp2 ]; then echo "* <s>"$comp2"</s>" comp2=0 elif [ $comp1 = 0 ]; then kk=kk else echo "* "$comp1 fi comp1=$comp2 done