How to Export Variable from Bash Script, Not Calling the Other One

How to Export Variable from Bash Script, Not Calling the Other One

I have inside my script = 1.sh: A=1, export A I made the 1.sh = 755

I know if I run: . ./1.sh

then if from command line I will run echo $A it will return 1

so in that case I should have 2 files file1 with VARs, that can be run with . ./file1

then the file 2 with commands

how I can get the VALUEs of VARs, if I have the VARs and commands in 1 file ?

2
Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.