<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Parsing a file (NMAP output) in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/parsing-a-file-nmap-output/m-p/6687368#M54673</link>
    <description>&lt;P&gt;We are trying catalog our servers that have port 443 open, so we can catalog where we have used certificates.&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I have multiple files where i have entries in the files containing specific nmap output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting ports on moodle.OURDOMAIN.TLD (XXX.YYY.ZZZ.CCCC):&lt;BR /&gt;PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; STATE SERVICE&lt;BR /&gt;443/tcp open&amp;nbsp; https&lt;BR /&gt;MAC Address: AA:BB:CC:DD:EE:FF (VMWare)&lt;BR /&gt;&lt;BR /&gt;Interesting ports on moodletest.OURDOMAIN.TLD (XXX.YYY.ZZZ.BBB):&lt;BR /&gt;PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; STATE SERVICE&lt;BR /&gt;443/tcp open&amp;nbsp; https&lt;BR /&gt;MAC Address: AA:BB:CC:DD:EE:FF(VMWare)&lt;BR /&gt;&lt;BR /&gt;Interesting ports on moodlew2.OURDOMAIN.TLD(XXX.YYY.ZZZ.AAA):&lt;BR /&gt;PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; STATE SERVICE&lt;BR /&gt;443/tcp open&amp;nbsp; https&lt;BR /&gt;MAC Address:&amp;nbsp;AA:BB:CC:DD:EE:FF (VMWare)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to "grep for the word "open" and grab the two lines prior and line after the occurance of "open"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hoping the script gurus have an idea.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Dec 2014 19:14:39 GMT</pubDate>
    <dc:creator>rmueller58</dc:creator>
    <dc:date>2014-12-22T19:14:39Z</dc:date>
    <item>
      <title>Parsing a file (NMAP output)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parsing-a-file-nmap-output/m-p/6687368#M54673</link>
      <description>&lt;P&gt;We are trying catalog our servers that have port 443 open, so we can catalog where we have used certificates.&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I have multiple files where i have entries in the files containing specific nmap output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting ports on moodle.OURDOMAIN.TLD (XXX.YYY.ZZZ.CCCC):&lt;BR /&gt;PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; STATE SERVICE&lt;BR /&gt;443/tcp open&amp;nbsp; https&lt;BR /&gt;MAC Address: AA:BB:CC:DD:EE:FF (VMWare)&lt;BR /&gt;&lt;BR /&gt;Interesting ports on moodletest.OURDOMAIN.TLD (XXX.YYY.ZZZ.BBB):&lt;BR /&gt;PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; STATE SERVICE&lt;BR /&gt;443/tcp open&amp;nbsp; https&lt;BR /&gt;MAC Address: AA:BB:CC:DD:EE:FF(VMWare)&lt;BR /&gt;&lt;BR /&gt;Interesting ports on moodlew2.OURDOMAIN.TLD(XXX.YYY.ZZZ.AAA):&lt;BR /&gt;PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; STATE SERVICE&lt;BR /&gt;443/tcp open&amp;nbsp; https&lt;BR /&gt;MAC Address:&amp;nbsp;AA:BB:CC:DD:EE:FF (VMWare)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to "grep for the word "open" and grab the two lines prior and line after the occurance of "open"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hoping the script gurus have an idea.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2014 19:14:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parsing-a-file-nmap-output/m-p/6687368#M54673</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2014-12-22T19:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a file (NMAP output) (grep)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parsing-a-file-nmap-output/m-p/6687373#M54674</link>
      <description>&lt;P&gt;&amp;gt;I would like to "grep for the word "open" and grab the two lines prior and line after the&amp;nbsp;occurrence of "open"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No need to script, it's built into grep:&lt;/P&gt;&lt;P&gt;grep -B2 -A1 open input-file&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2014 19:30:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parsing-a-file-nmap-output/m-p/6687373#M54674</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-12-22T19:30:43Z</dc:date>
    </item>
  </channel>
</rss>

