I am having XML file say app_config.xml. This contains below line:
app_config.xml
<conf>
<LOGFILENAME>seasonalitylog.$now.log</LOGFILENAME>
</conf>
I am reading in a script file say test.sh
test.sh
file_name=awk -F '</?LOGFILENAME>' $'{print $2}' app_config.xml
Tried using eval command :
eval echo awk -F '</?LOGFILENAME>' '{print $2}' app_config.xml
but it is not returning correct result. It is returning blank.
Please help me to understand where i am hoing wrong. Thanks in advance.