I wish to grep for an entry in a file if it contains and does not start with
Listen 443 or
Below is what helped me get
Listen 443 but how can I tweak the below command to also include
Listen 9443 port ?
Listen 8443 or
Listen 4438 should fail in the grep.
grep -i '^Listen.*443$' /tmp/server.xml | grep -v '#'
grep -w helps find exact word.
Can you please suggest ?