Then I am having a main script in which I want to accesses the value of FILE1 by giving "files.list" as input. I am doing something like this
#!/usr/bin/ksh
.set_ki_env.ksh
##Function##
getFileName(){
FileName=$1;
echo $FileName
##This is printing the value from list file which is FILE1
}
##End###
while read num filename
do
getFileName $filename
done < files.list
I am getting the output as FILE1. I want to get the value of FILE1 from the set_env.ksh which is /clocal/data/user/userdata.txt.
I have tried $("$FileName"); But not getting the required output.