Why does this not work?

Christof Chen christof at chen.de
Wed Feb 25 08:18:27 UTC 2009


Hello David,

> One other small question:  Would it be possible to pre-process the
> dhcpd.conf file, following all the includes and making a new super,
> temporary dhcpd.conf file that contains all the includes - and then - run
> your PARSER and your LEXER on that?

(from bash)

perl -p -e "s/^\s*include\s*\"([^\"]+)\";/{open(INPUT,\"\$1\");while
(<INPUT>) {print;};close INPUT; undef;}/e" dhcpd.conf

would do the preprocessing for you.

Best regards,
	Christof Chen



More information about the dhcp-users mailing list