Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I want to provide a menu in a shell script that offers a check list of SQL scripts to run.

I actually need to execute the selected SQL scripts but it's about 20 of them and that make it hard to cover all possibility so I need a dynamic way to exec the selected scripts

share|improve this question
    
Have you tried assigning a number to each and read the input as an array and using case statement, execute the corresponding sql script? –  rahul Feb 12 at 12:11
    
No but thx for the idea i will do it –  Achref Khrissi Feb 12 at 12:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.