Stats

413 Contributors: 16
2017-04-22
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Functions

Download bash eBook

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(){
    

    }

Related Examples