This may be on the right track, but has a syntax error when I try to process the three permutated IPv4 addresses:

time tr -sc 0-9\\n ' ' < CPV-GB-OneCol0-6192019.txt | awk '{ k = 0; for (i = 0; k < 4 && ++i CPV-GB-TwoCol-OutputY.txt

The awk command is intended to select the one combination of hostname and permutated IPv4 address that correctly resolves. The grep command { grep "Nmap scan report for " - | cut -c22- } should remove all but the hostname and its IPv4 address from the output of the earlier grep command { | grep '[0-9]$' > intermediate.txt }.

The following attempt has no flagged errors, but stalls after creating intermediate.txt:

time tr -sc 0-9\\n ' ' < CPV-GB-OneCol0-6192019.txt | awk '{ k = 0; for (i = 0; k < 4 && ++i

Reply via email to