vim subscript.sh
#!/bin/bash tool="ApacheSpark"
vim main.sh
#!/bin/bash source /home/wx/subscript.sh echo $tool
$ sh main.sh
ApacheSpark
vim subscript.sh
#!/bin/bash tool="ApacheSpark"
vim main.sh
#!/bin/bash source /home/wx/subscript.sh echo $tool
$ sh main.sh
ApacheSpark