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.
Samuel
_______________________________________________
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