How to Return a String from Bash Functions | Linux Hint

Use of BASH function that returns a value Bash Functions can’t return values like other standard programming languages.

Source: How to Return a String from Bash Functions | Linux Hint