What does \| mean in this grep command?
I found grep "Nmap scan report\|tcp open" in a script that filters nmap output. There is no pipe character in the output, so what is \| doing? Is…
I found grep "Nmap scan report\|tcp open" in a script that filters nmap output. There is no pipe character in the output, so what is \| doing? Is…
I'm looking at a shell script that runs an nmap scan and saves matching lines to a variable: RESULT=$(nmap -iL $(HOSTS) --open | grep "Nmap scan report|tcp open")…