delfi/gtfs/stops_zhv.sh

31 lines
441 B
Bash

#!/bin/bash
#
echo "Started..."
#Started...
#
# special variable $# is the number of arguments
if [ $# -lt 1 ]; then
echo 'Call ./<script> <work dir>'
exit 1
fi
#
file=${1}/zhv/unzip/stops_zhv.txt
echo "file: "
echo $file
fileBase=$(basename $file)
echo "fileBase: "
echo $fileBase
#
target=${1}/gtfs/unzip/$fileBase
echo "target: "
echo $target
#
source=$file
echo "source: "
echo $source
#
cp $source $target
#
echo "Done."
#done.