CCCPaste

Including functions from other files and returning values

#!/bin/bash

source functions.sh #includes another shell script into this file

myFunc #function from functions.sh

function myFunc2 {
   echo "This is a string"
}

VARIABLE="$(myFunc2)"

echo "the var is $VARIABLE"