How to use functions in a BASH shell script

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

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

About Jay Versluis

Jay is a medical miracle known as a Super Survivor. He runs two YouTube channels, five websites and several podcast feeds. To see what else he's up to, and to support him on his mission to make the world a better place, check out his Patreon Campaign.

Add your voice!