|
|
|
|
|
by wangman
3790 days ago
|
|
Nice! I would have gone for a simpler loop: echo -e "sec\tmethod\turl";for url in {https,http}://{www.,}{en.wikipedia.org,{google,reddit,facebook,youtube,netflix,amazon,twitter,linkedin,msn}.com,google.co.in}; do curl -sL "$url" -w "%{time_redirect}\t${url%:}\t${url#//}\n" -o/dev/null; done|sort |
|
Or learn python and port it to python, I could swing it that way.. Cheers.