Skip to content

Instantly share code, notes, and snippets.

@mainframed
Created December 1, 2025 20:16
Show Gist options
  • Select an option

  • Save mainframed/5baf78d6023ddcf6de888d7dd7d9b9be to your computer and use it in GitHub Desktop.

Select an option

Save mainframed/5baf78d6023ddcf6de888d7dd7d9b9be to your computer and use it in GitHub Desktop.
grep open *.nmap | grep tn3270 | sed -E '
/ssl\/tn3270/ {
s/.*\.([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\.nmap:([0-9]+)\/.*/L:\1:\2/
b
}
s/.*\.([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\.nmap:([0-9]+)\/.*/\1:\2/
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment