*}
codea teams

Read Config Value



Given a config file with the following:

MASTER_BACKUP_DATE 12-1-2010

The code below will read the file and look for the line above, returning the value

MASTER_BACKUP_DATE=`awk '$1 ~ /^MASTER_BACKUP_DATE/ { print $2 }' $CONFIG_FILE`