Jak zjistit ip aresu - vyreseno - jeste lepsi reseni ;-)
Pavel Janík
Pavel na Janik.cz
Úterý Březen 25 20:43:25 CET 2003
From: "Radek Kohout" <Radek.Kohout na op-profashion.cz>
Date: Tue, 25 Mar 2003 07:52:17 +0100
> [radek na cluster2 radek]$ time /sbin/ifconfig eth0 | awk '{ if( $1 == "inet" )
> print $2 }' | awk -F: '{ print $2 }'
Pouze jednou awk:
LANG=C /sbin/ifconfig eth0|awk '/inet addr/{sub("addr:","");print$2}'
--
Pavel Janík
/* Host controller interrupts must not be running while calling this
* function or the penguins will get angry. */
-- 2.2.16 drivers/usb/ohci.c
Další informace o konferenci Linux