23,125
社区成员
发帖
与我相关
我的任务
分享
http://linux.pacific.net.au/linux/packman/suse/10.2/repodata/repomd.xml // 这样的网址 要变成 下面一行的样子
我想要这样的:
linux.pacific.net.au
linux.pacific.net.au/linux/packman/suse/10.2/repodata/repomd.xml
1183245989.174 0.129 137.157.56.174 200 1277 GET http://linux.pacific.net.au/linux/packman/suse/10.2/repodata/repomd.xml"text/xml"
1183245989.254 0.059 137.157.56.174 200 1277 GET http://linux.pacific.net.au/linux/packman/suse/10.2/repodata/repomd.xml"text/xml"
1183245989.264 0.009 137.157.56.174 200 2259 GET http://linux.pacific.net.au/linux/packman/suse/10.2/repodata/repomd.xml.key "text/xml"
1183245989.324 0.049 137.157.56.174 200 1175 GET http://linux.pacific.net.au/linux/packman/suse/10.2/repodata/repomd.xml.asc "text/plain"
1183245990.463 1.018 137.157.56.174 200 2962288 GET http://linux.pacific.net.au/linux/packman/suse/10.2/repodata/filelists.xml.gz "text/xml"
1183245991.522 0.950 137.157.56.174 200 2265658 GET http://linux.pacific.net.au/linux/packman/suse/10.2/repodata/primary.xml.gz "text/xml"
1183245991.961 0.079 137.157.56.174 200 1277 GET http://linux.pacific.net.au/linux/packman/suse/10.2/repodata/repomd.xml"text/xml"
1183327698.250 2.568 137.157.56.3 200 57891 GET http://csc3-2004-crl.verisign.com/CSC3-2004.crl "application/pkix-crl"
1183328737.107 0.570 137.157.56.2 301 777 GET http://www.starnet.com/expiredialog/demo.php?product_name=xwin32&time_remain=1800&version=8.0.2216&locale=en_AU&w32iso639ulang=en&uuid={dfe167ce-f51c-4fd4-af80-25f31246f6bc} "text/html"
1183328737.908 0.781 137.157.56.2 200 5696 GET http://www.starnet.com/expiredialog/demo.php/xwin32/1800?version=8.0.2216&locale=en_AU&w32iso639ulang=en&uuid=%7bdfe167ce-f51c-4fd4-af80-25f31246f6bc%7d "text/html"
cat sample-set.log | sed -n "s/.* GET http:\/\/\(.*\)\/.* .*/\1/p"
1183344631.786 2.187 137.157.56.111 301 758 GET http://misc.icarusindie.com:2004/misc/SDKs//Microsoft+Platform+SDK+2003/bin/ "text/html"
sed 's;http://\([^/]\+\).\+;\1;'
sed -n "s/.* GET http:\/\/\([a-zA-Z0-9.]\{1,\}\).*/\1/p" sample-set.log
sed -e 's#.* http://\([^/]*\).*#\1#' sample-set.log
1183703993.221 19.483 137.157.56.124 200 1939 GET http://ads1.msn.com/ads/53432/0000053432_000000000000000433675.swf?fd=rad.microsoft.com&clickTAG=http%3A//g.msn.com/0AD00050/1107871.1%3F%3FPID%3D3945527%26amp%3BUIT%3DM%26amp%3BTargetID%3D1085433%26amp%3BAN%3D153815468%26amp%3BPG%3DCMSWAP "application/x-shockwave-flash"
sed -n "s/.* GET http:\/\/\([a-zA-Z.]\{1,\}\).*/\1/p" sample-set.log