Functions in Shell Scripting | passing arguments to functions | return for function in shell script

preview_player
Показать описание
Hello guys . This video is about understanding the concept of functions in shell scripting . I had started with explaining the meaning of functions in shell scripting . I discussed about two method in which a function can be defined . After that , I explained the process of sending the arguments to a function and how we can access arguments send to a function in shell scripting . I discussed about $0 . $1 , $2 , $3 , $4 , $# , $@ , $* used in function . I also talked about FUNCNAME array variable that can be used to print the current executing name of function . I also discussed return keyword in function that are used to set the exit status code of the function . At the end , I talked about the importance of function where I explained the how functions are used for code reusability , cleaner code and also sometimes how functions enables a quick debugging.
Topics covered in this video :
- functions in shell scripting
- function definition in shell scripting
- function calling in shell scripting
- passing arguments to a function in shell scripting
- use arguments in a function
- $0 , $1 , $2 , $3 , $# , $@ , #* in shell scripting
- print name of the executing function in shell scripting
- set exit status code of a function in shell scripting
- use of return in shell scripting
- return in function
- importance of functions in shell scripting
- code reusability of function in shell scripting

#function #return #shell #scripting #passing_arguments

_____________________________________________________
Support My Work On ...

_____________________________________________________
Connect With Me On ...

Рекомендации по теме
Комментарии
Автор

good tutorial, hoping youtube gods notice you to gain more subscribers

chrisplusplus
Автор

you are muito brabo!! thanks!! is the second time you've unlocked my learning

nicholasaffonso
Автор

That was easy to understand, thank u so much.

amintacce
Автор

How to return Boolean value from function

ashishtiwari
join shbcf.ru