filter port in httpd.conf

filter port in httpd.conf

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

 

read count : 241

Leave a Reply

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