Running the script in-theory should output results per line depending on the arguments used
The scripts name is 'stdout', and have made it exacutable. I enter './stdout GOOGLE.COM' into the console and nothing happens
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Results: [ cat whois_google.com.txt | grep $1 | cut -d ' ' -f 3 | sort -r]"
exit 1
fi
There are no errors, the text file is a dummy file including simple fields such as 'Server Name: GOOGLE.COM.AR' and after running the command I'm hoping for an output of the different server names