Shell Script to demonstrate functions
e.g.
# Shell script to demonstrate functions.
function1(){
echo "this is the first function"
}
function2(){
echo "this is function 2"
echo "this function has the argument 1 with value $1"
}
# Calling the functions in the script
function1
function2(54)
Like it on Facebook, Tweet it or share this article on other bookmarking websites.