Convert shell script to batch file
Posted: 2016-10-25T07:39:23-07:00
I need help concerting this shell script to .bat file. Any pointers would help.
#!/usr/bin/ksh
. /app/common/scripts/setenv.sh
cd /app/PPaths_ALM/config
echo '[Global]' > DatabaseParam.config
if [[ -n "$1" ]] ; then
SQLDB=$1
echo '$DBConnectionEDW=EDW_STG_'$SQLDB >>DatabaseParam.config
else
echo "<Invalid Arguments>"
echo "Usage: "
echo "$0 [SQL DB(FAS/DLY)] [RUN DATE(mm/dd/yyyy)]"
echo
echo
exit
#!/usr/bin/ksh
. /app/common/scripts/setenv.sh
cd /app/PPaths_ALM/config
echo '[Global]' > DatabaseParam.config
if [[ -n "$1" ]] ; then
SQLDB=$1
echo '$DBConnectionEDW=EDW_STG_'$SQLDB >>DatabaseParam.config
else
echo "<Invalid Arguments>"
echo "Usage: "
echo "$0 [SQL DB(FAS/DLY)] [RUN DATE(mm/dd/yyyy)]"
echo
echo
exit