Linux Today: Linux News On Internet Time.

More on LinuxToday

How to Return a String from a Bash Function

Mar 02, 2018, 09:00 (1 Talkback[s])
(Other stories by Fahmida Yesmin)

Bash Functions can't return values like other standard programming languages. Bash functions support return statement but it uses a different syntax to read the return value. You can get the value from bash functions in different ways. In this tutorial, you will learn how you can pass string data from bash function to the caller by using different types of bash syntaxes.

Complete Story