[Résolu] Re: Re : Micro coup d e pouce pour dév en herbe

Gaël - InternetCom <[email protected]>
Newsgroups gmane.linux.debian.devel.french
Message-ID <op.upc1ezfn8l70a2@x2>
Merci pour cette réponse expéditive ! et efficace !


Le Sat, 14 Feb 2009 21:08:40 +0100, Loris Boillet <[email protected]>  
a écrit:

> ca c'est du proverbe :)
>
> [code]
>     for i in max michel john casimir matthieu martin ;
>     do
>     printf "%-"${nb}"s" "$i" "est le prénom" ; echo ""
>     done
> [/code]
>
>
>
> ________________________________
> De : Gaël - InternetCom <[email protected]>
> À : [email protected]
> Envoyé le : Samedi, 14 Février 2009, 20h43mn 00s
> Objet : Micro coup de pouce pour dév en herbe
>
> 'jour la liste.
>
> J'ai besoin de formater le retour d'une boucle for, à peu près comme  
> suit :
>
> [code]
>     for i in max michel john casimir matthieu martin ;
>     do
>     printf "%-10s" "$i" "est le prénom" ; echo ""
>     done
> [/code]
>
> Ceci me renvoit exactement ce que je veux, en terme d'aspect.
> Toutefois, je souhaiterais remplacer la longueur du champ (ici 10) par  
> une variable.
> Après maints tests de syntaxes infructueuses, je m'avoue vaincu ....
>
> --Proverbe : "Si Microsoft inventait un truc qui ne plante pas, ce  
> serait un clou."
>
>
> --To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact  
> [email protected]
>
>
>       __________________________________________________________________________________________________
> Ne pleurez pas si votre Webmail ferme ! Récupérez votre historique sur  
> Yahoo! Mail ! http://fr.docs.yahoo.com/mail/transfert_mails.html



-- 


Proverbe : "Si Microsoft inventait un truc qui ne plante pas, ce serait un  
clou."


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.