I know some very basic commands in Linux and am trying to write some scripts. I have written a function which evaluates the sum of last 2-digits in a 5-digit number. The fun
Use the special bash variable "$?" like so:
function_output=$(my_function) function_return_value=$?