Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    unsert variables in Bash Scripting

    Linux
    bash scripting linuxfoundation linux
    3
    3
    478
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • binurayeshan
      binurayeshan Linux Help last edited by

      මේ link වලින් ගිහින් ඔයාලට bash script ගැන කලින් කරපු post බලාගන්න පුලුවන්..

      Lets talk about bash script - https://lankadevelopers.com/topic/371/lets-talk-about-bash-script

      First bash script - https://lankadevelopers.com/topic/372/first-bash-script

      Sum of two numbers in bash script - https://lankadevelopers.com/topic/377/sum-of-two-numbers-in-bash-script

      Bash script Array introduction - https://lankadevelopers.com/topic/386/bash-script-array-introduction

      Read only variables in Bash Scripting - https://lankadevelopers.com/topic/387/read-only-variables-in-bash-scripting

      අපි දැන් බලමු මොකක්ද මේ unset variables කියල කියන්නෙ කියල.
      මෙන්න මෙහෙමයි
      හිතන්න අපි මුලින්ම assign කරපු variable එකක value එක පස්සෙ අයින් කරන්න ඕනි කියල අපි මේකට use කරන්නෙ unset variables

      #!/bin/bash
      
      y=7 #y ගේ value එක 7 යි කියල දෙනව
      echo "$y" #ඒක ප්‍රින්ට් කරනවා
      
      unset y #ඔන්න දැන් value එක අයින් කරන​වා
      echo "$y" #දැන් ප්‍රින්ට් කරල බල්න්න...
      

      0_1569544638776_Screen Shot 2019-09-27 at 6.07.08 AM.png

      1 Reply Last reply Reply Quote 2
      • root
        root Linux Help last edited by

        Great bro.

        1 Reply Last reply Reply Quote 0
        • dev_lak
          dev_lak last edited by

          great bro

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          1
          Online

          3.6k
          Users

          1.3k
          Topics

          5.3k
          Posts

          • Privacy
          • Terms & Conditions
          • Donate

          © Copyrights and All right reserved Lanka Developers Community

          Powered by Axis Technologies (PVT) Ltd

          Made with in Sri Lanka

          | |