MARG wrote: > Hi, Hello,
> I want to insert these two lines in Apache's httpd.conf: > LoadModule python_module modules/mod_python.so > AddModule mod_python.c > > just right after the line > LoadModule php5_module modules/libphp5.so > > and not at the end of the file (with a simple echo "AddModule > mod_python.c" >> httpd.conf). > > I've searched the web, tried my best, but couldn't make it. > > Can you help me please ? perl -i~ -pe'?LoadModule php5_module modules/libphp5.so? && ( $_ .= "LoadModule python_module modules/mod_python.so\nAddModule mod_python.c\n" )' httpd.conf John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>