[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]
[Hilos de Discusión] [Fecha] [Tema] [Autor]On Wed, 2004-07-21 at 16:54, Antonio Galicia Ceballos wrote:
> On Wed, 21 Jul 2004, Gustavo Barron wrote:
>
> > Por aquello de las dificultades de encontrar la ip de manera manual
> >
> > ifconfig | grep -A 1 "ppp0 " | grep -v ppp0 | cut -d ':' -f2 | awk '{
> > print $1 }'
>
> ifconfig ppp0 | grep inet | cut -d ':' -f2 | cut -d\ -f1
>
> Más, fácil, creo.
damogar@berenjena:~$ /sbin/ifconfig ppp0 | grep inet | cut -d ':' -f2 |
cut -d\ -f1
cut: the delimiter must be a single character
Try `cut --help' for more information.
damogar@berenjena:~$x
--
David Moreno Garza <damog en damog net>
http://www.damog.net/
PGP 356E16CD - 84F0 E180 8AF6 E8D0 842F B520 63F3 08DB 356E 16CD