I have a linux script job that is made up of 7 scripts in total to complete the job. There are about 60 Variables defined at the start of each script. These variables will be constant & identical in each of the 7 scrips.
The problem I have is that when I am working on the scripts, I have to copy paste all variables to all scripts each time I update or modify variable(s)
Is there a way that I can define all the variables in a file "variables.txt" & somehow reference all these variables from variables.txt at the start of each script?
I was thinking of using sed, but there is probably an easier & cleaner way..