On Thu, Sep 23, 1999 at 12:12:57PM +1200, Tim Thomson wrote:
> Hi,
> 
> I want to write a script, that gets the local ip address, and does a
> reverse ns lookup, then sets the hostname to the dns response.
> 
> I can use grep to get the line I want from ifconfig and nslookup. But how
> do I get the numbers and name out of the output? Was it awk or sed, or am
> I going along the wrong track?

if it is not too complicated, try "cut"

hope this helps

Marcin


-- 

--------------------------------
Marcin Owsiany
[EMAIL PROTECTED]
--------------------------------

Reply via email to