title: Script for appending a string to all files in a directory
body: <p>I'm new to Linux. I need a little script that appends "\n exit" to the end of all files in <code>/test</code>.</p>
  
  <p>I tried <code>echo "\n exit" &gt; file1.sql</code> it worked but <code>\n</code> (the new line) didn't work.</p>
  
  <p>How can I achieve this?</p>