I trying to run a function outside of my script. Example test.sh:
DAYS=10
IP=1.2.3.4
Main {
functionName ${DAYS} ${IP}
}
functionName() {
echo $1
echo "$2"
}
from command line I'm trying to run the scripts function with different parameters
./test.sh functionName 4 "1.3.4.5"
Having trouble getting it to work so any ideas would be great thanks