Right now I have a simple script I want to now call a .properties file and then print the results of that file, this is what I have so far
#Specific Set Variables
SpecficStatus="Pass" #SetVariable
timestamp() { date +"%a %d %b %Y %T %Z"; }
SpecficDate=$(timestamp)
echo $SpecficStatus
echo $SpecficDate
#Properties Call
file="savedState.properties"
#Echo out the file
while read LINE; do echo "$LINE"; done < savedState.properties
Whats in my savedState.properties file
WD_MANAGEGOLD_DATETIMESTAMP=Wed 20 May 2015 13:50:51 UTC
WD_MANAGEGOLD_SUCCESS=false
WD_MANAGERC_DATETIMESTAMP=Wed 20 May 2015 13:50:51 UTC
WD_MANAGERC_SUCCESS=false
As you can see from the script I can call the file and print out the results but What I want is to be able to choose which values and store them as variables for later use in the script ??
Any help would be great