bash: shell function.
-
Take into account the main readme for this section. README first.
Also see: https://www.gnu.org/software/bash/manual/bash.html#shell_functions
Syntax:
function name [()] compound-command [ redirections ]
&
name () compound-command [ redirections ]The compound-command is a list of commands between { and } see below, two different forms to define a function.
function my_status { w|head -1 } my_status
or
my_status () { w|head -1 } my_status
© Lightnetics 2024