Micro coup de pouce pour dév en herbe

Gaël - InternetCom <[email protected]>
Newsgroups gmane.linux.debian.devel.french
Message-ID <op.upcw1yab8l70a2@x2>
'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]
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.