title: How do I edit the file content through chef recipe?
body: <p>I have create a file through chef recipe. The codes are below. </p>
  
  <pre><code>execute "helloworld.txt" do
    command "mkdir /etc/#{node['jboss']['user']}"
    not_if { ::File.exists?("/etc/#{node['jboss']['user']}")}
  end
  
  file "/etc/jboss-as/helloworld.txt" do
     owner 'user'
     group 'user'
     mode 0755
     action :create_if_missing
  end
  
  template "/etc/jboss-as/helloworld.txt" do
    source "helloworld.txt.erb"
  end
  </code></pre>
  
  <p>My helloworld.txt file content below:</p>
  
  <pre><code>TESTING 
  Hello World 
  Hello Winnie 
  Hello Everyone 
  Hello Boy
  </code></pre>
  
  <p>I want to edit Hello Boy to Hello Girl using code to edit the command above, what command should I use and I need to do? I do not want to just change content directly from the helloworld.txt.</p>
  
  <p>Please comment below to show your solution. Thankyou.</p>