Dynamic moving of a file using shell script
I have a requirement where in i am passing the file Name and file location values dynamically as a parameter in the concurrent program in oracle applications.
Lets assume if my file name is Uday.txt
and location on the server is usr/tmp/data that i am passing then
my P_DATA_FILE variable will be assigned with Uday.txt
and P_DATA_FILE_LOC variable will be assigned with usr/tmp/data
I have created a new variable P_TOTAL_DATA_FILE
which forms the total path of this file name using the below command
P_TOTAL_DATA_FILE=${P_DATA_FILE_LOC}/${P_DATA_FILE}