---
title: "Discussion on \"Declaring Global Variable in Bash Scripting for Beginners\" | Hashnode"
description: "Discussion on \"Declaring Global Variable in Bash Scripting for Beginners\". There might come a time when you’re working with bash scripting and you’re constantly setting variables with every new session you start. This can become tiresome and redundant after the third or fourth time doing it. But, did you know that you can s..."
url: "https://hashnode.com/posts/declaring-global-variable-in-bash-scripting-for-beginners/63868001150d683958755931"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Declaring Global Variable in Bash Scripting for Beginners](https://rainswerld.com/declaring-global-variable-in-bash-scripting-for-beginners?utm_source=hashnode&utm_medium=feed)

There might come a time when you’re working with bash scripting and you’re constantly setting variables with every new session you start. This can become tiresome and redundant after the third or fourth time doing it. But, did you know that you can s...

Nov 29, 2022 · 4 min read · rainswerld.com  
Read the article

-   [#bash](https://hashnode.com/tag/bash)
-   [#devops](https://hashnode.com/tag/devops)
-   [#variables](https://hashnode.com/tag/variables)

## Written by

[Rain Robinson](https://hashnode.com/@rainswerld)

@rainswerld

  
[View profile](https://hashnode.com/@rainswerld)

Full-Stack & DevOps

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
