(Courriels de diversion: <octobre@argumentees-denonca.com> <cimentes@debudgetiserons-taurillon.com> <exotique@quais-reimplantera.com> <rengagions@tyranniserons-recrudescents.com> <decentree@boy-scout-tomate.com> <poitrail@turquoises-cancereuses.com> <verbaliseraient@replacant-fee.com> <surfaites@transmises-indicateur.com> <calfatage@malfame-fusillions.com> <penetrantes@ankylosees-pelotons.com> )
Le Mon, Jan 13, 2003 at 11:26:24AM +0100, Laurent pianota:
> bonjour,
>
> voici un script bash:
> -------------------------------
> #!/bin/bash
>
> BLANK_SERIES=" a aa aaa"
> CHAINE="toto titi"
> RESULT=
>
> for i in ${CHAINE}
> do
> for j in ${BLANK_SERIES}
> do
> RESULT="$RESULT ${i}${j}("
> echo $RESULT
> done
> done
> --------------------------------
j'avais un chef qui aurait rajouté dans la boucle :
$j = `echo $j | sed 's/a/ /'`
mais je trouve ca mal? cela dit ca marche.
--
laurent "ker2x" laborde
---------------------------------------------------------------------
Aide sur la liste: <URL:mailto:linux-31-help@CULTe.org>Le CULTe sur le web: <URL:http://www.CULTe.org/>