Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash function

foo () {
    echo $1  # $1 is the first argument
}
foo

# alternative way
function foo {
	echo $1
}
foo
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #bash #function
ADD COMMENT
Topic
Name
3+9 =