I want to replace the default listening port of httpd to 9090. I can edit the line in httpd.conf file using below
sed -i "/^Listen/c\Listen 9090" /etc/httpd/conf/httpd.conf
But the line
may have white space before it.
How do I ignore this white space to match this line?