[Ilugc] Find IP address of a machine

  • From: cyborg4k@xxxxxxxxx (Shakthi Kannan)
  • Date: Mon Oct 23 18:53:43 2006

Hi,

--- Arun Velusamy <arunvelusamy@xxxxxxx> wrote:

       `/sbin/ifconfig | grep inet | awk '{print
$2}' | sed 's#addr:##g'`

If anyone of you could achieve this, through a
simple means, plz let me 
know.

Another method:

  /sbin/ifconfig eth0 | awk '/inet addr/ {print $2}' |
cut -d: -f2

SK

--
Shakthi Kannan
http://www.shakthimaan.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com ;

Other related posts: