It looks like you could have nmap format its output in a way that would much easier to process (multiline patterns are a pain): https://nmap.org/book/output-formats-grepable-output.html

Reply via email to