I have created the utility that need to be run in all the system without any error by creating the required environment. When ever I run the following command it will take the path value from a config file and that should assign that value into BASE_DIR variable
export BASE_DIR=`cat <config file path> | grep BASE_DIR | head -1 | cut -d = -f 2`
Following is the content of config file:
when I run the first code it is taking value as
$HOME/flshrc instead of the actual home path, for example
How to not consider the grepped value as string and should be considered as the actual value and substitute the $HOME value?