Le mercredi 14 décembre 2005 à 01:16 +0100, J.Pierre Pourrez a écrit : > Le Wed, 14 Dec 2005 01:05:32 +0100, manioul a écrit : > > > Le mardi 13 décembre 2005 à 23:37 +0100, J.Pierre Pourrez a écrit : > >> Bonsoir à tous, > > Coucou! > >> > >> J'essaie d'utiliser le petit shell ci-dessous pour envoyer un courriel > >> avec fichier joint à plusieurs destinataires. > >> > >> --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- > >> #!/bin/sh > >> > >> WORKDIR="$HOME/reprise/cgpme"
> Il y a 2 champs à récupérer sur chaque ligne du fichier liste.txt.
> Comment on fait avec une boucle for ?
Par exemple:
# line feed comme séparateur
IFS="\012"
> > for adresse in `cat liste.txt`;do
champ1=`echo $adresse | awk {'print $1'}`
champ2=`echo $adresse | awk {'print $2'}`
...
done
> >>
> >> --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
>
> Une autre idée ?
> Jean-Pierre
>
>
>
--
\_o< *PAN!* ........ Shootez dadvsi, ici:
http://eucd.info/petitions/index.php?petition=2
http://boisson.homeip.net:8080/petition.php
>o_/ *PAN!* *PAN!* ........ Entrainez-vous au tir, ici:
http://www.culture-libre.info/ - irc: [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part

