<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Bash Shell Scripting For Beginners - Local and Global Variables</title>
        <link>https://stream.echo6.co/videos/watch/706e5c3b-c524-40c0-a946-c09630ec55f1</link>
        <description>In This video I demonstrate the difference between local and global variables in bash, remember bash unlike most other languages has all its variables set to global by default.  You can use the "local" flag to make the variable be accessible only by the function call. Source Code used in this video ###local variables stay within the function, and cannot be accessed outside of it, to the rest of the script outside of that functions it's as if the variable doesn't even exist. ##by default all the variables in bash are global variables function greet_user(){ local name=$1 echo "Hello $name how are you doing?" } ###when the local flag is set the variable becomes "locked" to that function #function greet_user(){ local name=$1echo "Hello $name how are you doing?"#} name="George" greet_user Kenny echo "Hello $name how are you doing?" #echo "after calling our function" #echo "Hello $name How are you doing today?" #echo "Hello $othername" #greet_user Subscribe to my YouTube channel http://goo.gl/9U10Wz and be sure to click that notification bell so you know when new videos are released. ₿💰💵💲Help Support the Channel by Donating Crypto💲💵💰₿ Dash Xh9PXPEy5RoLJgFDGYCDjrbXdjshMaYerz Zcash t1aWtU5SBpxuUWBSwDKy4gTkT2T1ZwtFvrr Chainlink 0x0f7f21D267d2C9dbae17fd8c20012eFEA3678F14 Bitcoin Cash qz2st00dtu9e79zrq5wshsgaxsjw299n7c69th8ryp Etherum Classic 0xeA641e59913960f578ad39A6B4d02051A5556BfC USD Coin 0x0B045f743A693b225630862a3464B52fefE79FdB Bitcoin bc1qyj5p6hzqkautq4d3zgzwfllm7xv9wjeqkv857z Ethereum 0x35B505EB5b717D11c28D163fb1412C3344c7684d Litecoin LQviuYVbvJs1jCSiEDwWAarycA4xsqJo7D DOGE D7MPGcUT4sXkGroGbs4QVQGyXqXd6QfmXF</description>
        <lastBuildDate>Mon, 13 Apr 2026 11:50:32 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>PeerTube - https://stream.echo6.co</generator>
        <image>
            <title>Bash Shell Scripting For Beginners - Local and Global Variables</title>
            <url>https://stream.echo6.co/client/assets/images/icons/icon-512x512.png</url>
            <link>https://stream.echo6.co/videos/watch/706e5c3b-c524-40c0-a946-c09630ec55f1</link>
        </image>
        <copyright>All rights reserved, unless otherwise specified in the terms specified at https://stream.echo6.co/about and potential licenses granted by each content's rightholder.</copyright>
        <atom:link href="https://stream.echo6.co/feeds/video-comments.xml?videoId=706e5c3b-c524-40c0-a946-c09630ec55f1" rel="self" type="application/rss+xml"/>
    </channel>
</rss>