First iI write a configfile with all my parameters like this
path="/home/test/"
I name it testtest.conf.conf
Then iI write a shell script with this content and, name it testtest, and make it executable with chmod +xchmod +x.
#!/bin/bash
#read the config file
. /home/test/test.conf
#cat the file /home/test/test
cat `$path`test #This line is the problem
And I get this output
./test/test: line 3: /home/test/: Is a directory
cat: test: No such file or directory
But whatWhat I wantwould like is that it shows me the content of the file /home/test/test/home/test/test.
So how
How do I write this script correctly, so that it doesn't make a new line after the filepathfile path?