Created
April 13, 2012 11:47
-
-
Save ataliba/2376254 to your computer and use it in GitHub Desktop.
Função zzmeuip do funcoeszz - não foi adicionada ao repositório pois já existe uma que faz a função dela
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ---------------------------------------------------------------------------- | |
# Mostra o seu ip público. | |
# Uso: zzmeuip | |
# Ex.: zzmeuip | |
# | |
# Autor: Ataliba Teixeira < ataliba (a) ataliba.eti.br > | |
# Desde: 2010-12-25 | |
# Versão: 1.0 | |
# Licença: GPL | |
# ---------------------------------------------------------------------------- | |
zzmeuip () | |
{ | |
zzzz -h meuip $1 && return | |
local URL="http://meuip.com.br" | |
$ZZWWWDUMP "$URL" | grep "meu ip" | awk -F" " '{print $4}' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment