How to use functions in a BASH shell script

BASH can deal with simple functions, and they are defined like this:

# this defines the function
function testing {
    echo "Hi there!"
}

# this calls our function
testing

As far as I know, BASH functions cannot take or return parameters.





You can leave a comment on my original post.