ola,

ifconfig eth0 |grep inet |cut -d : -f2 |cut -d " " -f2

----- Original Message -----
From: "Maicon Radeschi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 03, 2002 2:31 AM
Subject: (linux-br) shell script


> ol� novamente (to ficando chato n� ?)
> bom, gostaria de fazer um shell script que me mostrasse somente o endere�o
IP que eu estou no momento, consegui fazer isso :  ifconfig ppp0 | awk
'{print $2}' | grep 200
> mais dai aparece assim: addr:200.191.x.x
> e gostaria que aparecece soh o 200.191.x.x , algu�m tem alguma id�ia ? to
precisando urgente
>
> obrigado.
>
> --
> --
> Maicon Radeschi
> [EMAIL PROTECTED]
> --
>
>
>


Assinantes em 03/01/2002: 2274
Mensagens recebidas desde 07/01/1999: 148611
Historico e [des]cadastramento: http://linux-br.conectiva.com.br
Assuntos administrativos e problemas com a lista: 
            mailto:[EMAIL PROTECTED]

Responder a