Shell Scripting Tutorial for Beginners 24 - Local variables

preview_player
Показать описание
LOCAL VARIABLES IN FUNCTIONS :
Variables defined within functions are global, i.e. their values are known throughout the entire shell program keyword “local” inside a function definition makes referenced variables “local” to that function. Local variables can be created by using the keyword local.

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

Very good explanation of the difference between global and local variables.

KE
Автор

Thank you very much for taking your time to create these videos. Really helps out the guys who don't have any formal teaching/training. Can you explain (when you get a chance) how to execute a bash script by clicking on from the desktop? I am having a hard time with this for some reason. I am newer to Linux and struggling with this... Again, I super appreciate your time and effort, keep up the good work!!!

jamesotto
Автор

i wish i had same attitude, motivation and found this back years ago...i'd have conquered the whole world. Keep up the good work.

Question - Any place to find out real-world scenarios to use these bash learnings per se production.

mandeepmails
Автор

can we use another name for print, or is using "print" the standard convention?

vaasudhand