May 2017
Intermediate to advanced
634 pages
16h 24m
English
The grep command is a highly functional command-line utility that can be used in Bash to extract specific content from the output or from a given file. In the script provided in this recipe, the grep command is used to extract, from the Nmap greppable output file, any instances of the given port number. Because the output from the grep function includes multiple pieces of information, the output is then piped over to the cut function to extract the IP addresses and then output them to the terminal.
Read now
Unlock full access