title: Shell script to loop through and execute sql files in a directory
body: <p>I am quite new to shell scripting and trying to create a shell script which goes into a directory and picks the *.sql files in the folder and executes the identified files.</p>
  
  <p>I know that it is possible to call the sql files from within the shell script but I want to separate the SQL files from the shell script itself as the number of scripts are quite much and it will be easier to maintain outside the shell itself.</p>
  
  <p>Your help will be greatly appreciated.</p>