Skip to main content
1 of 3
user avatar
user avatar

Passing arguments from one script to another

Let's say I am in a Bash script and am sourcing a file. How do I pass arguments to another script after I source the file like this.

sed -i 's/ = /=/' $file
source $file

Let's say file contains

variable1=10
variable2=apple

If I want to use these in another script, how do I pass these arguments to the other script, then run the script in my current Bash script.

user317784