how to add function to bash code example
Example 1: how to make a function in bash
print_something () {
echo Hello I am a function
}
Example 2: how to make a function in bash
function_name () {
<commands>
}
print_something () {
echo Hello I am a function
}
function_name () {
<commands>
}