I have ~750 .php files in the same directory that contain the line
include("path/to/file.php");
I would like to change this line in every file to
require_once("path/to/file.php");
What would be an efficient method to do so? So far I have tried the following Sed command with no luck:
sed 's#include("path/to/file.php");#require_once("path/to/file.php");#' *.php
-i
option to sed in order to change files in place. – jimmij Feb 23 '15 at 23:32