#!/bin/sh TOMCAT_VERSION=${1##*-} TOMCAT_VERSION=${TOMCAT_VERSION%%.tar.gz} ftp -o - http://tomcat.apache.org/download-55.cgi | \ grep '[^<]*,\1 ,g' | \ sed -e"s,\(http:[^ ]*\),\1/tomcat/tomcat-5/v${TOMCAT_VERSION}/bin/,g"