Difference between revisions of "Sed"
From DevOps Notebook
(Created page with "== Search and replace string in single file == <pre> sudo sed -i -e "s/upload_max_filesize = \"500M\"/upload_max_filesize = \"1200M\"/g" /etc/php7.4/cli/php.ini </pre>") |
|||
Line 1: | Line 1: | ||
== Search and replace string in single file == | == Search and replace string in single file == | ||
<pre> | <pre> | ||
− | sudo sed -i -e "s/upload_max_filesize = \"500M\"/upload_max_filesize = \"1200M\"/g" /etc/php7.4/cli/php.ini | + | $ sudo sed -i -e "s/upload_max_filesize = \"500M\"/upload_max_filesize = \"1200M\"/g" /etc/php7.4/cli/php.ini |
</pre> | </pre> |
Revision as of 11:06, 5 May 2021
Search and replace string in single file
$ sudo sed -i -e "s/upload_max_filesize = \"500M\"/upload_max_filesize = \"1200M\"/g" /etc/php7.4/cli/php.ini