Using perl to make custom changes to files

The below example shows how to make changes to the virtual host conf files. Here we are changing CustomeLog to #CustomLog.

perl -pi -e ’s/CustomLog/#CustomLog/’ virtual_host*.conf

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.