satishgaudo.com

Understanding technology

Linux command to replace a string across multiple files

sed -i ’s/product1.php/product.php/g’ *.php

In the command above  “product1.php” is replaced with “product.php” across all files with extension “.php” within the project folder.

Bookmark and Share
Categories: linux
*