[mrtg] Re: Indexing
Bjorn Nordbo
bn at nextra.com
Mon Jan 22 17:18:35 MET 2001
Mark Campbell wrote:
>
> Hi all,
>
> Does anyone out there have a script that will take all the config files for
> individual targets in a certain directory and write them all into one big
> config file?
for file in *.cfg; do sed -n '/^$/,$p' < $file; done > all.cfg
Untested. Assumes blank line after global config section.
--
Bjørn Nordbø - IP Development - Nextra Norway
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list