Call shell script function from awk script

hi everyone

i am trying to do this

 
bash> cat abc.sh
deepak()
{
echo Deepak
}
deepak
 
bash>./abc.sh
Deepak

so it is giving me write simply i created a func and it worked

now i modified it like this way

 
 
bash> cat abc.sh
deepak()
{
echo Deepak
}
deepak
echo "" | nawk ' { system(deepak) } '
echo "" | nawk ' {system("deepak") } '
 
bash>./abc.sh
Deepak
sh:deepak  not found

so pls pls help me how can i call a function from awk script

Bash functions are functions like in any other programming language. You can call them from bash only. You need a script for "system".

awk is its own, self-contained language, not a shell language extension.