How to put variables commands in config files?

Hi All,

Seeking for your assistance on how to put in variables all the commands in /bin

config files: /home/test/config_file/config.cfg

cat /home/test/config_file/config.cfg
ECHO=/bin/echo
LS=/bin/ls

Main script

cat test.sh
source=/home/test/config_file/config.cfg

ECHO=$ECHO
LS=$LS

#i want to use echo command in config

$ECHO "Hello"
$LS /home/test/config_file/

ERROR:
i encountered command not found although i assigned it in the config files
Please advise,

Thanks,

Not clear. WHAT goes wrong? WHERE are you stuck? Why should you want ALL commands in /bin in variables?

Did you source /home/test/config_file/config.cfg , or did you execute it (in a sub shell)?

Hi Sir,

How can i call the variable inside my config file?

Thanks,

You're `source` line is in error. Replace the equal sign by a space:

source /home/test/config_file/config.cfg
$ECHO now it works