filter port in httpd.conf

cat /etc/httpd/conf/httpd.conf|grep koc|grep Re|grep -Eo '[0-9]+'|sort -n|grep -v '^0$'|uniq|sed 's/\(.*\)/Listen \1/'

 

Leave a Reply

Your email address will not be published. Required fields are marked *