I have a bash script that has a few functions which are all called within 1 function. How can I pipe all the output from all the functions up to the main one? I'll be using tee as well to display that output to term and to a log file.
func 1
func 2
func 3
func 1
func 4
func 2
func 3
call func 4 # i want to grab it here