Untitled
# !/bin/sh # # Bash script to move and format returns to Murex. # # --------------------------------------------------------------------------------- # VARIABLES GLOBALES source ~/.bashrc path_library="/MARS/scripts/library" path_rniv="/MARS/scripts/RNIV/python" OutManDirectory="/MARS/data/OutputManager" inputDir="/MARS/data/cubeInputData/Atoti/RNIV/" outputDir="/MARS/output/RNIV/yield_returns" #################################################################### # PARAMETROS ENTRADA asOfDate=$1 #VARIABLES SCRIPT inFile="${inputDir}/${asOfDate}/YieldReturns/${asOfDate}_all_returns.csv" #CREACION DIRECTORIOS sh $path_library/create_folder.sh "${outputDir}/${asOfDate}" ##################################################################################### # LOGIC if [ -f "${inFile}" ]; then outFile="${outputDir}/${asOfDate}/.txt" echo "Processing yield shocks" result=$(python "${path_rniv}"/adapt_shocks.py "${inFile}" "${asOfDate}" "${outFile}") echo "${result}" fi
Leave a Comment