0
I have an SQL file repository where each one represents a stored Procedure. These files are inside a directory organized in other subdirectories.
Example of my directory structure:
stored-procedures
---d1
------sd1
---------sp1.sql
---------sp2.sql
---------sp3.sql
------sd2
---------sp4.sql
---------sp5.sql
------sd3
---d2
------sd4
---------sp6.sql
---d3
------sd5
------sd6
The command I use to run each stored-Procedure separately is as follows::
mysql -uuser -psenha bd < sp1.sql --force
How could I do this on Linux via the command line or creating a script?