First I write a configfile with all my parameters like this
path="/home/test/"
I name it test.conf.
Then I write a shell script with this content, name it test, and make it executable with chmod +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
I get this output
./test/test: line 3: /home/test/: Is a directory
cat: test: No such file or directory
What I would like is that it shows me the content of the file /home/test/test.
How do I write this script correctly, so that it doesn't make a new line after the file path?
"$path"), not backquotes.