Is it possible to declare functions in bash like in C ?
Functions can get quite big so i don't want to define them at the beginning of the script.
For example:
#!/bin/bash
#Variable definition
myVar='Hello World'
#function declaration <-- is this possible if yes how ?
function greeting() {}
#main code
greeting
#function definition
function greeting() {
echo $myVar
}