Functions in Bash
This is the code for a function in Bash script.
#!/bin/bash # Define a function
greet() {
echo "Hello, $1"
}
# Call the function with "World" as the argument
greet "World"
This is the code for a function in Bash script.
#!/bin/bash # Define a function
greet() {
echo "Hello, $1"
}
# Call the function with "World" as the argument
greet "World"
Jeremiah Ch. 6: "Stand ye by the ways and see, And ask for the old paths,
Where is this-the good way? and go ye And find rest for yourselves."
(Young's Literal Translation Bible, Translated by Robert Young, A. Fullarton & Company, 1863)

