I have a config file that has blank, commented lines. I need to escape commented lines, blank lines, parse the remaining lines and store them in variables or array.
the config file contains the following lines.
# config file
# Define Oracle User
ORA_USER=abcde
ORA_PASS=xyzabc
ORACLE_SID=def
# CSV file name
#FILENAME=U021999.csv
FILENAME=U025645.csv
#Log file
LOGFILE=Automation_log.xls
OUTPUTFILE=Output.xls
now I want to read the value "abcde" and store it in a variable. like wise I want to read all the values and store in an array.
How can I approach to get values those stored in an array.