![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "include" directory is not there | Katkota | UNIX for Dummies Questions & Answers | 10 | 01-02-2008 12:07 AM |
| How can I tranfer an OS/ Unix (from old HD to new HD / include all files saved ) | Vietnam | UNIX for Dummies Questions & Answers | 0 | 08-04-2006 11:27 PM |
| how to include external files in tcsh | umen | Shell Programming and Scripting | 0 | 12-07-2005 05:54 AM |
| moving files from a unix directory to a windows directory | gleads | UNIX for Dummies Questions & Answers | 2 | 08-29-2002 08:42 PM |
| Include files | reddyb | High Level Programming | 3 | 06-27-2001 10:38 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
include all files under a directory
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? |
|
||||
|
Quote:
This is not the way I expect; In addition, your code produce the following: include /home/htao/trial/new/*; |
|
||||
|
Quote:
Code:
cd /etc/dhcpd/
for dr in *
do
echo "include $PWD/$dr;"
done
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|