When trying to perform the following command:
curl -v telnet docker.io:80 | grep -q 'connected to docker.io'
I can't get the "interesting part" where I only need the message I wanted to grep.
I want to use a built-in Centos command and not netcat to check if a port is open because it's port of a script that needs to run on pre-installation.