Getting value from one file and assigning it to variables of another file.

Hi,

I need to read two values,startdate and enddate from a param file and then write this value to another param file(global) under a specific workflow name.Here in global param file there is may workflow names, hence we need to check for the right one and then add the data below it.

Any pointers would be really helpful.
Thanks in advance.

please provide the input and output type

hi itkamaraj
Please specify..

I am asking you to give some sample input and output file

input data : two date values seperated by a comma in a target file.
need to set these values to two variables in another file, under the specific mapping name.

---------- Post updated at 07:03 AM ---------- Previous update was at 06:46 AM ----------

hi
my source file is like
8-12-1986,5-4-1988.
i need to read the first and second date into two different variables in a script.

thanks in advance.

A=`echo "8-12-1986,5-4-1988"`|ask -F ',' '{print $1}'

Above assigns first date to variable A. For second, just change print $1 to print $2 and assign to different variable.