I have 2 shell scripts. In the first script I have kept the main method. In the 2nd script I have placed all the variables needed for the method since they are too many. Actually the main method needs 8 variables to run, likewise I have some 10 sets of 8 variables. The main method in script1 has to run for every set of variables. My questions:
How to call these variables from script 2 to the main method in script 1 in order to execute the same? Can I try declaring each set of variables as a function and try to call inside script 1? How to do that?
Please help me with this. Thank you in advance.