title: Run all .sql files in directory on linux with SQL server
body: <p>I have seen this question for windows: <a href="https://stackoverflow.com/questions/2583517/run-all-sql-files-in-a-directory">Run all SQL files in a directory</a></p>
  
  <p>I was wondering how to do it for linux. To my knowledge .bat filetype is for windows. Anyone know a simple script for linux? I rarely use linux.</p>
  
  <p>I have code to run them one at a time with </p>
  
  <p><code>sqlcmd -S localhost -U SA -p myPassword -i myFile1.sql</code>  </p>
  
  <p>(My sql files have which database to use). Just unsure how to make it run for all them since there are a lot.</p>