I am writing a shell script. I need to parse a file which has following contents
insert_job: DL_EACP_Generic_Load job_type: c
box_name: DL_EACP_Generic_Box
command: /Loader.sh /opt/Loader.pl --appiaAbbrev GenericLoader --clientDir ECP_Generic --productName GenericLoader --FileName ECAP_Generic_config
std_out_file: $HOME/logs/DL_ECP_Generic.
$$YYYYMMDD
.txt
std_err_file: $HOME/logs/DL_ECP_Generic.
$$YYYYMMDD
.txt
alarm_if_fail: 1
max_exit_success: 99
profile: /export/home/user/.profile
job_load: 80
priority: 1
I need to retrieve the clientDir which is ECP_Generic and the Filename which is ECAP_Generic_config in the above case. Please advise.
Start Free Trial