I have below property file in same directory.
cancellation.properties
Content:
TestData=My Name
My unix script is abc.sh
Content:
#!/bin/ksh
. ./cancellation.properties
echo "Please enter data to read"
read data
echo $data
While running I give the value TestData
.
I am getting output as "TestData"
.
But I want output as "My Name"
. What changes needs to be done here because key will be entered by user.