Search and replace in multiple files

To search a directory for files with the extension .conf and replace the IP address with Do the following:

find . -name '*.conf' | xargs perl -pi -e 's/'

Thats it have fun.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.