Bash Echo To Standard Output From Function

[Solved] Bash Echo To Standard Output From Function | Php - Code Explorer | yomemimo.com
Question : Bash echo to standard output from function

Answered by : classy-answer

print_message() { echo "message content" >&2
}
#OR
print_message() { echo "message content"
} >&2

Source : https://stackoverflow.com/questions/31656645/how-do-i-echo-directly-on-standard-output-inside-a-shell-function#fromHistory | Last Update : Fri, 18 Mar 22

Answers related to bash echo to standard output from function

Code Explorer Popular Question For Php