'm learning bash but i don't understand how to call functions that are defined later.For example:
Code:
cmdz
function cmdz{
local cmd args
while read -e -p "> " cmd args; do
case $cmd in
sa ) select_all args ;;
rd ) read_date args ;;
ra ) read_attendee args ;;
sd ) sorted_data args ;;
q ) exit
esac
done
}
When i run this simple bit of code i just get an error saying that the "command" cmdz not found.So what is wrong here?
Any help would be great.Thankx in advance