#!/bin/bash version=1.9.16 tar xvzf apache-ant-${version}-bin.tar.gz \ && mv apache-ant-${version} apache-ant if [ $? = 0 ] ; then echo "Untarred Apache Ant $version and renamed the directory to:" echo " apache-ant" fi