Search & Replace on multiple files

To search an replace content in multiple files, use sed.

Example:

sed -i -e 's/search/replace/g' *

That will replace ‘search’ with ‘replace’ on every file in the current directory.

Leave a Reply

Your email address will not be published.