On Fri, Oct 03, 2008 at 06:10:35PM +0200, Samuel Thibault wrote:
> Aldo, le Fri 03 Oct 2008 18:02:43 +0200, a écrit :
> > # Récup de l'indicatif (suffixe) de son pays:
> > cty="`whois `wget -O - -q http://www.whatismyip.org/` |grep country: |cut 
> > -d: -f2 |cut -c9- |tr A-Z a-z`"
> 
> Attention on ne peut pas imbriquer les `: ton deuxième ` va fermer le
> premier. Il faut utiliser $(whois $(wget ...)) à la place.

En effet là ça marche; merci cbp, j'ai de nouveau apris qq chose.

Ald0 
_______________________________________________
Liste de diffusion CarrefourBLinuX 
    [email protected]
    http://lists.freearchive.org/mailman/listinfo/carrefourblinux
Pour s'inscrire par courriel : 
    'mailto:[EMAIL PROTECTED]'
Pour se retirer de la liste par courriel : 
    'mailto:[EMAIL PROTECTED]'

Archives : http://lists.freearchive.org/pipermail//carrefourblinux
Anciennes archives (Yahoogroupes) :
    http://fr.groups.yahoo.com/group/carrefourblinux/messages
Rechercher : http://lists.freearchive.org/cgi-bin/search.cgi

Signets : http://fr.groups.yahoo.com/group/carrefourblinux/links/
Fiches EDU : http://blinuxwiki.pbwiki.com/FichesEdu

Répondre à