We have existing function ("fun1") with complex calculations. For the sake of simplicity, i havn't mentioned here.
As part of reusability, we are asked to call this function wherever needed.
Your chances are low. While the function definition somehow survives - if export ed! - and makes it into awk 's environment under a modified name, like
Last login: Wed Nov 6 20:47:08 on ttys000
AMIGA:amiga~> cd Desktop/Code/Shell
AMIGA:amiga~/Desktop/Code/Shell> chmod 755 awk_shell.sh
AMIGA:amiga~/Desktop/Code/Shell> ./awk_shell.sh
Hi There 123
03
AMIGA:amiga~/Desktop/Code/Shell> _