Você pode exportá-los assim.
#!/bin/bash
#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 IFS== read -r VAR1 VAR2
do
#echo "VAR1=$VAR1 : VAR2=$VAR2"
export "$VAR1=$VAR2"
done < savedState.properties
echo "$WD_MANAGEGOLD_DATETIMESTAMP"
echo "$WD_MANAGEGOLD_SUCCESS"
echo "$WD_MANAGERC_DATETIMESTAMP"
echo "$WD_MANAGERC_SUCCESS"
Isto imprime:
Pass
Wed 20 May 2015 12:24:26 EDT
Wed 20 May 2015 13:50:51 UTC
false
Wed 20 May 2015 13:50:51 UTC
false