How to execute bash script inside another bash script

For executing bash script inside another bash script, we can use source command.

Syntax:

source script-name.sh

Where script-name.sh is the secondary script need to be execute.

 

Leave a Reply

Your email address will not be published. Required fields are marked *