Need help to write a function in shell scripting to execute sql files
Thanks for your reply.
I need to write a function and put it in one shell script.For example my script name is Test.sh then i will be using "nohup Test.sh > test.log>&1 &" to run.
In this Test.sh, I need to write a function to call the .sql files, by using function name i need to call the sql files but i am getting error when i tried with my code . I have 18 files(.sql files) to execute.For example
RUn c.sql by passing parameters, here in the above example Runsql is a function name which needs to call the .sql files.