function call

can I call a function in bash script just as in C++

while
do

function\(\)

done

function()

thanks,
Steffen

Yes, you can call. But no need of the parenthesis. Arguments can be passed as when passed through command prompt.

and are referenced inside the function by $1,$2,$3 respectively. The function should be defined before it is called.

"The function should be defined before it is called"

by doing what?

Steffen

Please read this for some idea - functions