title: How to edit a file saved in string using sed?
body: <p>I need to edit the file saved in a string using sed. As per the below example, I want to change some pattern in the php.ini file. Below example will allow only to change what is saved in the string.</p>
  
  <pre><code>[root@server ~]# PHPINI=/etc/php.ini
  [root@server ~]# sed "s/somepattern/changedpattern/" &lt;&lt;&lt; "$PHPINI"
  </code></pre>
  
  <p>Can somebody help? Thanks in advance.</p>