Replacing text with sed
To replace all occurences of string1 in a file with string2 : $ sed -ri "s|string1|string2|" some_file.txt
To replace all occurences of string1 in a file with string2 : $ sed -ri "s|string1|string2|" some_file.txt
Courtesy of TJ at devnet ...
I was getting something like this trying to run an application built on the Zend Framework : ...
Edit app/webroot/index.php and change the lines that read like : if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') { } else { $Dispatcher=new Dispatcher(); $Dispatcher->dispatch($url); } to something like : ...