i am asking to do somethings like:
make use of 2 environment variables:
ASS1_DATA_DIR specifies the location of the input data files
ASS1_OUTPUT_DIR specifies the location of the output data files
i have something like that; #set environment variables
set
VARIABLE1=ASS1_DATA_DIR
VARIABLE2=ASS1_OUTPUT_DIR
and then how can i use these variables to specifies the location of the files? and also when the variables is not set then i need to use the current working directory to search for files, how can i did this things?
Thank you
if [ "$ASS1_DATA_DIR" ]; then
VARIABLE1=$ASS1_DATA_DIR
else
VARIABLE1=$(pwd)
fi
if [ "$ASS1_OUTPUT_DIR" ]; then
VARIABLE2=$ASS1_OUTPUT_DIR
else
VARIABLE2=$(pwd)
fi