Hi All,

I am trying to get the actual address of Mozilla's mirror
for a script.  Currently, I can do it with

curl --head --max-time 20 --silent http://ftp.mozilla.org/ --output - |\
               html2text -nobs -style pretty -width 132 | \
               grep -i "Apache"                         | \
               awk -F "Server: " '{print $3}' | awk '{print $1}'

And it does work.

Is there an easier way?

Many thanks,
-T

Reply via email to