title: Add line to Shell Script File
body: <p>How can I add a line to a shell script, at the very end of a function using bash?</p>
  
  <p>Say the line I want to add is: <code>echo "Well Hello There";</code> and my function is</p>
  
  <pre><code>function hello_there {
      echo "Hi";
      echo "Whats popping?";
  
  }
  </code></pre>
  
  <p>The only real constant will be the name of the method <code>hello_there</code>, and the beginning and end brackets... but I need the line to go above the end bracket... and I do not know how many times I will need to be able to do this...</p>