function bash

Shell
                #!/bin/bash 
                
                #Call a function without arguments
                function quit {
                   exit
                }
                
                #Call a function with arguments
                function e {
                    echo $1 #$1 will be set to the first argument given
                }  
                

           
#!/bin/bash 
function name() {

echo "something"

}
Source

Also in Shell: