Functions in Bash
Functions are code blocks that can be reused
Define function
Call function
Variables in function
Variables are global
:::info If a variable defined in function will be accessible outside the function
To define variable in a function that should only be accessible inside the function than
local variable=value :::
Get Data into function
echo “data“ | function_name