script function

I need to call the function called foo() using echo command in the same statement. How do I all or invoke the function using the echo statement?

{ 3 comments }

How do I create a shell script function using Bash under UNIX / Linux operating systems?

{ 6 comments }