Getting IP's out of a txt file

From: Alistair McKeown (Alistair.Mckeown_at_jacobsrimell.com)
Date: 07/02/04

  • Next message: Geoff Lane: "solaris patch management"
    To: "'sunmanagers@sunmanagers.org'" <sunmanagers@sunmanagers.org>
    Date: Fri, 2 Jul 2004 12:22:57 +0100 
    
    

    Does anyone know how I can get just the IP address out from lots of entries,
    below is just two of them, there is about 2000 like this. Is there a flash
    grep which can be used?

    bash-2.03$ cat b.txt
    job_xml
    S<job jobID="77042" type="SNMPSet"><task taskID="1"
    type="SNMPReset_DOCSISExperimental"><devicedescriptor><devicetype><attr
    name="type">snmp</attr></devicetype><deviceinstance><attr
    name="hostname">10.138.150.188</attr><attr name="hostport">161</attr></dE
    S<job jobID="90713" type="SNMPSet"><task taskID="1"
    type="SNMPReset_DOCSIS"><devicedescriptor><devicetype><attr
    name="type">snmp</attr></devicetype><deviceinstance><attr
    name="hostname">10.97.17.21</attr><attr
    name="hostport">161</attr></deviceinstance><E

    Just need the Ip address.

    regards,

    Alistair.
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Geoff Lane: "solaris patch management"

    Relevant Pages

    • Re: Windows Explorer properties
      ... Regards. ... > Brings up quite a few entries. ... Installing a Norton Antivirus update did cause ... >>> Ken McGourty ...
      (microsoft.public.windowsxp.perform_maintain)
    • RE: Simple Formula?
      ... Assume the entries are within A2:A20 ... Regards, ... "pauldaddyadams" wrote: ...
      (microsoft.public.excel.worksheet.functions)
    • Re: Saving current workbook
      ... Regards, ... > I have an Excel spreadsheet that uses VB to watch for entries in certain ... > cells. ...
      (microsoft.public.excel.programming)
    • Re: Last Resort
      ... Hi Ken thanks for sticking with me on this....I'll try to clarify ... I have dragged these formulas all the way down the columns..so new entries ...
      (microsoft.public.excel.programming)
    • Re: ld_info kernel service
      ... loaded libc, the code below will give me 10 entries for libc (each with ... The equivalent code works fine with ...
      (comp.unix.aix)