Update all files containing a search pattern using standard linux utilities

Completato Pubblicato 3 anni fa Pagato alla consegna
Completato Pagato alla consegna

Hi,

I've got a bunch of apache configuration files that have an incorrect configuration. I've attached one to this project. The ErrorLog line towards the top of the file is correct, but the ErrorLog further down which is associated to the SSL setup is incorrect. I basically want to take the ErrorLog from up top, copy it, and then replace the ErrorLog at the bottom with this line.

Looking for a one-liner, or a couple of lines so I can run it over the entire contents of the configuration directory and update all the files.

Cheers,

Craig

Linux Apache Ubuntu Debian CentOs

Rif. progetto: #29798479

Info sul progetto

1 proposta Progetto a distanza Attivo 3 anni fa

Assegnato a:

(370 valutazioni)
6.7