function in shell code example
Example 1: functions in linux
#!/bin/sh
# Define your function here
Hello () {
echo "Hello World"
}
# Invoke your function
Hello
Example 2: shell function example
#!/bin/sh
# Define your function here
Hello () {
echo "Hello World $1 $2"
}
# Invoke your function
Hello Zara Ali
Example 3: shell script function read
read -s -p “Enter Password: ” pswd