Not sure if I am being dumb here but I am not able to figure this out.
If I put this in bash script:
var="`date '+%a %b %d'`*.*INFO Ended execution of script"
echo $var
The output that I get is:
Mon Sep 27*.*INFO Ended execution of script
However, If I put the same content in a file:
"`date '+%a %b %d'`*.*INFO Ended execution of script"
And then write a small bash script to read the content of this file
while read -e line
do
echo "$line"
done < file
When I execute this script I get
"`date '+%a %b %d'`*.*INFO Ended execution of script"
How do i get the command substitution to work when I read the content from a file?