Morning Everyone:

I'm stuck on a small problem.  I'm trying to parse out the IP address of
my DHCP server for a variable in a script.  From the command line, I've
gotten this far:

   pump -s | grep "Boot" | cut -f 2

This yields:

   Boot server 24.128.1.34

Of course, when I looked at the output of the pump -s command, the only
field I needed the IP address from was this, and, of course, there is no
":" to mark as a delimiter.  Notice all of the other fields have it.  My
question is, how do I grab the IP address and not the other information?

I'm going to eventually need to assign this to a variable in my ipchains
firewall script, so I'm thinking the correct syntax will be:

   variable_name = `pump -s | grep "Boot" | cut -f 2 ...`

Any ideas?

- Mike


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to