Bash Functions

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

Syntax

  • Define a function with the function keyword:

    function f {
    

    }

  • Define a function with ():

    f(){
    

    }

  • Define a function with both the function keyword and ():

    function f(){
    

    }



Got any Bash Question?