Return a value from called function to the calling function

I have two scripts. script1.sh looks
--------------------------------
#!/bin/bash

display()
{
echo "Welcome to Unix"

}

display
-----------------------------

Script2.sh

#!/bin/bash

sh script1.sh //simply calling script1.sh

------------------------------

How can I get "Welcome to Unix" from script1.sh and display it through script2.sh?

Something like this should be useful to you:

#!/bin/bash

output=`sh script1.sh`
echo "This is the output of sript1: $output"

The ` ` symbols execute a command.
output=`...` stores the result of the command in the variable output.

You can also use $(...) instead of `...`, in some cases it is more convenient.

Hope this helps.