fredao
1
I want to include all the subnet files under /etc/dhcpd/ to /etc/dhcpd.conf
so here is my content of dhcpd.conf
...
include "/etc/dhcpd/*";
however, the check-syntax reports syntax error, as they do not recognize the wildcard , and display that " file /etc/dhcpd/ could not be found.
how can I use wildcard to refer to all the files in this directory?
anbu23
3
for dr in *
do
echo "include $PWD/$dr;"
done
Copy the output of the above code and paste in to your file
fredao
4
This is not the way I expect;
In addition, your code produce the following:
include /home/htao/trial/new/*;
anbu23
5
cd /etc/dhcpd/
for dr in *
do
echo "include $PWD/$dr;"
done
First move the directory where you have the files to include