xxxxxxxxxx
function MyFunction() {
# this will output the first argument (1 indexed, 0 is the function name)
# "MyFunction John" would echo "hello John"
echo hello $1
}
# this is also a valid function, you need either '()' or 'function'
# $# gives the amount of arguments passed in
# 'MyFunction2 a b c d' would output '4 a b c d'
MyFunction2() {
echo $# $*
}
# also would work like this
function MyFunction2 {
echo $# $*
}