Functions | Returning value from called function in a shell script

preview_player
Показать описание
The functions computes a value, function returns a single value at a time.

Functions are used to develop an modularity, A large program can be split into multiple small modules. Each module performs an specific task. Instead of writing the code over and over again we can write single function and call the function whenever you want and wherever you want throughout the program.

When a bash function ends its return value is its status: zero for success, non-zero for failure.
Рекомендации по теме
Комментарии
Автор

Functions are used to develop modularity in program. You can call each function in program any where.

TechArkit
Автор

Very clear cut explanation sir do more videos on real time common issues with solutions and more videos on Jenkins and aws

mabashadudekula
Автор

cant hear you over the banging of the keyboards that are louder then you watch your videos dont just load them cant hear you.

charlesklein
Автор

your videos are good but you have this thing that appears on the screen that is very annoying and wants me to do something but its so annoying because im listening to what your saying please stop it.

charlesklein