simplify function call that writes to output stream and returns value
问题 This is a follow up question for write to output stream and returning value from shell script function. In shell script, echo can be used to return values from functions. But, if those functions want to print some messages. Then, this can be done by redirecting it to error stream. But when the script is used as a autosys job. then messages from logic functions ends up in error stream file triggering alerts. Is there any way, messages from logic function can be written to output stream and not