Answer the question
In order to leave comments, you need to log in
How to make multiple change of values in php files?
There are several dozen *.php files containing the following data:
$_['value_blank'] = 'New Window';
$_['value_self'] = 'Same Window';
$_['value_name'] = 'Name';
$_['value_model'] = 'Model';
........
Answer the question
In order to leave comments, you need to log in
Open all files, for example, in Notepad ++, select what needs to be replaced, select the replacement tool on the panel, enter what we want to change to, press the replace button in all open ones.
It will work provided that the search string is written in the same way in all files.
cd /path/to/your/folder
sed -i 's/foo/bar/g' *
instead of foo there can be a regular expression
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question