#!/bin/bash #Set a variable exampleVariable=$(./hello.sh) #Print out the result echo The value of the variable is $exampleVariable