#!/bin/bash URL=$(basename $(dirname $(readlink -f ${BASH_SOURCE[0]}))) pushd output sftp webhost:${URL}/html <