Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash function parameter

#!/bin/bash

my_func() {
    echo "$1 $2 $3"
}

my_func "hello" "grepper" "friends"
Source by bash.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #bash #function #parameter
ADD COMMENT
Topic
Name
1+5 =