Saving variables to a .sh file and last successful run parm.

I had a script that uses a fair number of variables. My manager just let me know that these variables have to be set in one .sh file. How do I do that? I'm use bash shell.

Also At the end of my script I need to save the last successful run. so that when I run it next time, I just this parm to pick up files.
I'm just the epoch. So I need to save that as a parameter to use next time.

How do i do this?

You can define all your variables in a file and source that file.

How do I source that file is what I am asking?

Did you check the link that I posted?